using System.Windows.Controls; using MECF.Framework.Simulator.Core.Commons; using EfemDualSimulator.Devices; namespace EfemDualSimulator.Views { /// /// Interaction logic for SimuAdTecMatchView.xaml /// public partial class SimuAdTecMatchView : UserControl { public SimuAdTecMatchView(string param) { InitializeComponent(); this.DataContext = new MockAdTecMatchViewModel(param); } } class MockAdTecMatchViewModel : SerialPortDeviceViewModel { public string Title { get { return "AdTEC match simulator"; } } public MockAdTecMatchViewModel(string param) : base("AdTecMatchSimulator") { Init(new AdTecMatchMock(param)); } } }