2010-12-18 18:23:09 -04:00
|
|
|
|
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;
|
2011-01-26 17:17:44 -04:00
|
|
|
|
|
|
|
|
|
if (Program.IsMonoRuntime)
|
|
|
|
|
model.PropertyChanged += ((sender, e) => PositionHoldConfigBindingSource.ResetBindings(false));
|
2010-12-18 18:23:09 -04:00
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
// Required for VS2008 designer. No functional value
|
|
|
|
|
public class PositionHoldConfigViewDesignable : ViewCommon<PositionHoldConfigVm> { }
|
|
|
|
|
}
|