mirror of
https://github.com/ArduPilot/ardupilot
synced 2025-01-03 22:48:29 -04:00
91e5d3d99a
git-svn-id: https://arducopter.googlecode.com/svn/trunk@1634 f9c3cf11-9bcb-44bc-f272-b75c42450872
39 lines
904 B
C#
39 lines
904 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
|
|
{
|
|
public partial class SerialMonitorView : UserControl, IView<SerialMonitorVm>
|
|
{
|
|
private IPresentationModel _vm;
|
|
|
|
public SerialMonitorView()
|
|
{
|
|
InitializeComponent();
|
|
}
|
|
|
|
public void SetDataContext(SerialMonitorVm vm)
|
|
{
|
|
serialMonitorVmBindingSource.DataSource = vm;
|
|
_vm = vm;
|
|
}
|
|
|
|
|
|
public Control Control
|
|
{
|
|
get { return this; }
|
|
}
|
|
|
|
private void button1_Click(object sender, EventArgs e)
|
|
{
|
|
(_vm as SerialMonitorVm).SendTextCommand();
|
|
}
|
|
}
|
|
}
|