1234567891011121314151617181920212223242526272829303132333435363738394041 |
- using System.Windows;
- using System.Windows.Controls;
- using System.Windows.Input;
- using System.Collections.Generic;
- using Aitex.Core.UI.MVVM;
- using Aitex.Core.Utilities;
- using MECF.Framework.Simulator.Core.Commons;
- using VirgoSimulator.Devices;
- namespace VirgoSimulator.Views
- {
- /// <summary>
- /// SimuRevtechMatchPMBView.xaml 的交互逻辑
- /// </summary>
- public partial class SimuRevtechMatchPMBView : UserControl
- {
- public SimuRevtechMatchPMBView()
- {
- InitializeComponent();
- this.DataContext = new MockRevtechMatchViewModelPMB();
- this.Loaded += OnViewLoaded;
- }
- private void OnViewLoaded(object sender, RoutedEventArgs e)
- {
- (DataContext as TimerViewModelBase)?.Start();
- }
- }
- class MockRevtechMatchViewModelPMB : SocketDeviceViewModel
- {
- public string Title
- {
- get { return "Revtech match PMB simulator"; }
- }
- public MockRevtechMatchViewModelPMB() : base("RevtechMatchPMBSimulator")
- {
- Init(new RevtechMatchMockPMB());
- }
- }
- }
|