mirror of https://github.com/ArduPilot/ardupilot
32 lines
942 B
C#
32 lines
942 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 AltitudeHoldConfigView : AltitudeControlDesignable
|
|
{
|
|
public AltitudeHoldConfigView()
|
|
{
|
|
InitializeComponent();
|
|
BindButtons();
|
|
}
|
|
|
|
public override void SetDataContext(AltitudeHoldConfigVm vm)
|
|
{
|
|
AltitudeHoldConfigBindingSource.DataSource = vm;
|
|
|
|
if (Program.IsMonoRuntime)
|
|
vm.PropertyChanged += ((sender, e) => AltitudeHoldConfigBindingSource.ResetBindings(false));
|
|
}
|
|
}
|
|
|
|
// Required for VS2008 designer. No functional value
|
|
public class AltitudeControlDesignable : ViewCommon<AltitudeHoldConfigVm> { }
|
|
}
|