2010-12-18 18:23:09 -04:00
|
|
|
|
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();
|
|
|
|
|
BindButtons();
|
|
|
|
|
}
|
|
|
|
|
|
2011-02-13 05:25:54 -04:00
|
|
|
|
public override void SetDataContext(StableModeConfigVm vm)
|
2010-12-18 18:23:09 -04:00
|
|
|
|
{
|
2011-02-13 05:25:54 -04:00
|
|
|
|
StableModeConfigVmBindingSource.DataSource = vm;
|
2011-01-26 17:17:44 -04:00
|
|
|
|
|
|
|
|
|
if (Program.IsMonoRuntime)
|
2011-02-13 05:25:54 -04:00
|
|
|
|
vm.PropertyChanged += ((sender, e) => StableModeConfigVmBindingSource.ResetBindings(false));
|
2010-12-18 18:23:09 -04:00
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
// Required for VS2008 designer. No functional value
|
|
|
|
|
public class StableConfigViewDesignable : ViewCommon<StableModeConfigVm> { }
|
|
|
|
|
}
|