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;
|
|
|
|
|
using ArducopterConfigurator.Views;
|
|
|
|
|
|
|
|
|
|
namespace ArducopterConfigurator.views
|
|
|
|
|
{
|
|
|
|
|
public partial class FlightDataView : FlightDataViewDesignable
|
|
|
|
|
{
|
|
|
|
|
public FlightDataView()
|
|
|
|
|
{
|
|
|
|
|
InitializeComponent();
|
2011-02-20 19:01:29 -04:00
|
|
|
|
|
2010-12-18 18:23:09 -04:00
|
|
|
|
}
|
|
|
|
|
|
2011-02-16 18:19:32 -04:00
|
|
|
|
public override void SetDataContext(SensorsVm vm)
|
2010-12-18 18:23:09 -04:00
|
|
|
|
{
|
2011-02-20 19:01:29 -04:00
|
|
|
|
BindButtons(vm);
|
|
|
|
|
|
|
|
|
|
|
2011-02-13 05:25:54 -04:00
|
|
|
|
FlightDataVmBindingSource.DataSource = vm;
|
2010-12-18 18:23:09 -04:00
|
|
|
|
|
2011-01-25 17:47:18 -04:00
|
|
|
|
if (Program.IsMonoRuntime)
|
2011-02-13 05:25:54 -04:00
|
|
|
|
vm.PropertyChanged += ((sender, e) => FlightDataVmBindingSource.ResetBindings(false));
|
2011-01-25 17:47:18 -04:00
|
|
|
|
}
|
2011-02-16 19:49:54 -04:00
|
|
|
|
|
2010-12-18 18:23:09 -04:00
|
|
|
|
}
|
|
|
|
|
// Required for VS2008 designer. No functional value
|
2011-02-16 18:19:32 -04:00
|
|
|
|
public class FlightDataViewDesignable : ViewCommon<SensorsVm> { }
|
2010-12-18 18:23:09 -04:00
|
|
|
|
}
|