mirror of https://github.com/ArduPilot/ardupilot
33 lines
977 B
C#
33 lines
977 B
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 TransmitterChannelsView : TransmitterChannelsViewDesignable
|
|
{
|
|
public TransmitterChannelsView()
|
|
{
|
|
InitializeComponent();
|
|
BindButtons();
|
|
}
|
|
|
|
public override void SetDataContext(TransmitterChannelsVm model)
|
|
{
|
|
TransmitterChannelsBindingSource.DataSource = model;
|
|
|
|
if (Program.IsMonoRuntime)
|
|
model.PropertyChanged += ((sender, e) => TransmitterChannelsBindingSource.ResetBindings(false));
|
|
}
|
|
|
|
}
|
|
|
|
// Required for VS2008 designer. No functional value
|
|
public class TransmitterChannelsViewDesignable : ViewCommon<TransmitterChannelsVm> { }
|
|
}
|