1234567891011121314151617181920212223242526272829303132 |
- using System.Windows.Controls;
- using MECF.Framework.Simulator.Core.Commons;
- using EfemDualSimulator.Devices;
- namespace EfemDualSimulator.Views
- {
- /// <summary>
- /// SimuMicrowaveGeneratorPMAView.xaml 的交互逻辑
- /// </summary>
- public partial class SimuMicrowaveGeneratorPMAView : UserControl
- {
- public SimuMicrowaveGeneratorPMAView(string param)
- {
- InitializeComponent();
- this.DataContext = new MockMicrowaveGeneratorViewModelPMA(param);
- }
- }
- class MockMicrowaveGeneratorViewModelPMA : SerialPortDeviceViewModel
- {
- public string Title
- {
- get { return "Microwave RFG PMA simulator"; }
- }
- public MockMicrowaveGeneratorViewModelPMA(string param) : base("MicrowavePMARFG")
- {
- Init(new MicrowaveGeneratorMockPMA(param));
- }
- }
- }
|