using System; using System.Collections.Generic; using System.Collections.ObjectModel; using System.Linq; using System.Windows; using System.Windows.Controls; using System.Windows.Input; using Aitex.Core.UI.MVVM; using MECF.Framework.Simulator.Core.Commons; using MECF.Framework.Simulator.Core.Driver; using Venus_Simulator.Devices; using Venus_Simulator.Instances; namespace Venus_Simulator.Views { /// /// Simu_CometRFView.xaml 的交互逻辑 /// public partial class Simu_RevtechMatchPMDView : UserControl { public Simu_RevtechMatchPMDView() { InitializeComponent(); this.DataContext = new MockRevtechMatchViewModelPMD(); //this.Loaded += OnViewLoaded; } private void OnViewLoaded(object sender, RoutedEventArgs e) { (DataContext as TimerViewModelBase)?.Start(); } } class MockRevtechMatchViewModelPMD : SocketDeviceViewModel { public string Title { get { return "Revtech Match PMD simulator"; } } public MockRevtechMatchViewModelPMD() : base("RevtechMATCHPMDSimulator") { Init(new RevtechMatchMockPMD()); } } }