ardupilot/Configurator/Configurator.Net/Views/PositionHoldConfigView.cs

29 lines
919 B
C#

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