ardupilot/Configurator/Configurator.Net/Views/StableConfigView.cs

36 lines
949 B
C#

using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Drawing;
using System.Data;
using System.Text;
using System.Windows.Forms;
using ArducopterConfigurator.PresentationModels;
namespace ArducopterConfigurator.Views
{
public partial class StableConfigView : StableConfigViewDesignable
{
public StableConfigView()
{
InitializeComponent();
}
public override void SetDataContext(StableModeConfigVm vm)
{
BindButtons(vm);
StableModeConfigVmBindingSource.DataSource = vm;
if (Program.IsMonoRuntime)
vm.PropertyChanged += ((sender, e) => StableModeConfigVmBindingSource.ResetBindings(false));
}
}
// Required for VS2008 designer. No functional value
public class StableConfigViewDesignable : ViewCommon<StableModeConfigVm> { }
}