You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
36 lines
945 B
36 lines
945 B
14 years ago
|
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();
|
||
14 years ago
|
|
||
14 years ago
|
}
|
||
|
|
||
14 years ago
|
public override void SetDataContext(SensorsVm vm)
|
||
14 years ago
|
{
|
||
14 years ago
|
BindButtons(vm);
|
||
|
|
||
|
|
||
14 years ago
|
FlightDataVmBindingSource.DataSource = vm;
|
||
14 years ago
|
|
||
14 years ago
|
if (Program.IsMonoRuntime)
|
||
14 years ago
|
vm.PropertyChanged += ((sender, e) => FlightDataVmBindingSource.ResetBindings(false));
|
||
14 years ago
|
}
|
||
14 years ago
|
|
||
14 years ago
|
}
|
||
|
// Required for VS2008 designer. No functional value
|
||
14 years ago
|
public class FlightDataViewDesignable : ViewCommon<SensorsVm> { }
|
||
14 years ago
|
}
|