public SimulateMonitorManager( MainMonitor _mmonitor, SimulateModel _smodel) { mmonitor = _mmonitor; mmonitor.Manager = this; smodel = _smodel; smodel.SimulateStart += OnSimulateStart; smodel.SimulateAbort += OnSimulateAbort; }
public MonitorVariableTable(string tableName, MainMonitor parent) { InitializeComponent(); DataContext = this; TableName = tableName; if (tableName == "table_0") { ElementModel model = new ElementModel(false, BitType.BOOL); model.AddrType = "X"; model.StartAddr = 0; Elements.Add(model); } _parent = parent; }
public MonitorManager(ProjectModel projectModel) { MMWindow = new MainMonitor(projectModel); //ComThread = new Thread(_Thread_Run); ThreadPause += OnThreadPause; }
public void Dispose() { _parent = null; Elements.Clear(); }