mirror of
https://github.com/ArduPilot/ardupilot
synced 2025-01-06 16:08:28 -04:00
cedcd47073
git-svn-id: https://arducopter.googlecode.com/svn/trunk@1562 f9c3cf11-9bcb-44bc-f272-b75c42450872
37 lines
1.1 KiB
C#
37 lines
1.1 KiB
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();
|
|
BindButtons();
|
|
}
|
|
|
|
public override void SetDataContext(StableModeConfigVm model)
|
|
{
|
|
StableModeConfigVmBindingSource.DataSource = model;
|
|
|
|
if (Program.IsMonoRuntime)
|
|
model.PropertyChanged += (delegate
|
|
{
|
|
Console.WriteLine("Badoosh1");
|
|
StableModeConfigVmBindingSource.ResetBindings(false);
|
|
});
|
|
}
|
|
|
|
}
|
|
|
|
// Required for VS2008 designer. No functional value
|
|
public class StableConfigViewDesignable : ViewCommon<StableModeConfigVm> { }
|
|
}
|