public IMasterControl AddMaster(string name, IMeasurementSource source) { var display = new MasterDataDisplay(source); display.Dock = DockStyle.Fill; TabPage page = new TabPage(name); this.tabControlStacks.TabPages.Add(page); page.Controls.Add(display); return display; }
public MasterDataDisplay(IMeasurementSource source) { InitializeComponent(); this.source = source; source.AllBinaryUpdate += new OnUpdateBinary(this.UpdateBinary); source.AllAnalogUpdate += new OnUpdateAnalog(this.UpdateAnalog); source.AllCounterUpdate += new OnUpdateCounter(this.UpdateCounter); source.AllControlStatusUpdate += new OnUpdateControlStatus(this.UpdateBOStatus); source.AllSetpointStatusUpdate += new OnUpdateSetpointStatus(this.UpdateAOStatus); }
public IMasterControl AddMaster(string name, IMeasurementSource source) { var display = new MasterDataDisplay(source); display.Dock = DockStyle.Fill; TabPage page = new TabPage(name); this.tabControlStacks.TabPages.Add(page); page.Controls.Add(display); return(display); }
public MeasurementManager(IMeasurementSource source) { Source = source; Source.MeasurementReceived.Subscribe(OnMeasurementReceived); }