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.
39 lines
910 B
39 lines
910 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;
|
||
|
|
||
|
namespace ArducopterConfigurator
|
||
|
{
|
||
|
public partial class SerialMonitorView : UserControl, IView<SerialMonitorVm>
|
||
|
{
|
||
|
private IPresentationModel _vm;
|
||
|
|
||
|
public SerialMonitorView()
|
||
|
{
|
||
|
InitializeComponent();
|
||
|
}
|
||
|
|
||
|
public void SetDataContext(SerialMonitorVm mode)
|
||
|
{
|
||
|
serialMonitorVmBindingSource.DataSource = mode;
|
||
|
_vm = mode;
|
||
|
}
|
||
|
|
||
|
|
||
|
public Control Control
|
||
|
{
|
||
|
get { return this; }
|
||
|
}
|
||
|
|
||
|
private void button1_Click(object sender, EventArgs e)
|
||
|
{
|
||
|
(_vm as SerialMonitorVm).SendTextCommand();
|
||
|
}
|
||
|
}
|
||
|
}
|