1234567891011121314151617181920212223242526272829303132 |
- using System.Windows.Controls;
- using MECF.Framework.Simulator.Core.Commons;
- using CyberX8_Simulator.Devices;
- namespace CyberX8_Simulator.Views
- {
- /// <summary>
- /// SimuTemperatureControllerView.xaml 的交互逻辑
- /// </summary>
- public partial class ThorntonView : UserControl
- {
- public ThorntonView()
- {
- InitializeComponent();
- this.DataContext = new ThorntonViewModel();
- }
- }
- class ThorntonViewModel : SerialPortDeviceViewModel
- {
- public string Title
- {
- get { return "Thornton controller simulator"; }
- }
- public ThorntonViewModel() : base("ThorntonSimulator")
- {
- Init(new ThorntonSerialPortDevice());
- }
- }
- }
|