ardupilot/Configurator/Configurator.Net/Views/TransmitterChannelsView.cs

32 lines
949 B
C#
Raw Normal View History

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();
}
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> { }
}