コード例 #1
0
 public SimulateMonitorManager(
     MainMonitor _mmonitor, SimulateModel _smodel)
 {
     mmonitor              = _mmonitor;
     mmonitor.Manager      = this;
     smodel                = _smodel;
     smodel.SimulateStart += OnSimulateStart;
     smodel.SimulateAbort += OnSimulateAbort;
 }
コード例 #2
0
 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;
 }
コード例 #3
0
 public MonitorManager(ProjectModel projectModel)
 {
     MMWindow = new MainMonitor(projectModel);
     //ComThread = new Thread(_Thread_Run);
     ThreadPause += OnThreadPause;
 }
コード例 #4
0
 public void Dispose()
 {
     _parent = null;
     Elements.Clear();
 }