public My_VariableBindingData(My_Variable variable, WaveformCore core, ScaleManager scaleManager, CursorViewer cursorViewer) { this.variable = variable; this.cursorViewer = cursorViewer; this.core = core; this.scaleManager = scaleManager; //Реакция на изменение переменной variable.PropertyChanged += new PropertyChangedEventHandler(variable_PropertyChanged); }
public WaveformUserControl() { InitializeComponent(); core = new WaveformCore(this); dragDropManager = new ListViewDragDropManager(core, ListViewMain); dragDropManager.UpdateViewEvent += new UpdateView(dragDropManager_UpdateViewEvent); core.ScaleManager = new ScaleManager(core, timeScaleViewer); timeScaleViewer.ScaleManager = core.ScaleManager; timeScaleViewer.ScaleManager.PropertyChanged += new PropertyChangedEventHandler(ScaleManager_PropertyChanged); cursorViewer = new CursorViewer(this, core); cursorViewer.CursorPositionChangedEvent += new UpdateView(cursorViewer_CursorPositionChangedEvent); TreeListView.AllowMultiSelection(ListViewMain); core.CursorViewer = cursorViewer; actionMode = WaveformActionMode.Cursor; TimeMeasureDataView1.Core = core; lines = new List <Line>();; core.TimeMeasureList.CollectionChanged += new System.Collections.Specialized.NotifyCollectionChangedEventHandler(TimeMeasureList_CollectionChanged); runEvent = new RunDelegate(CustomRunCommandHandler); }
public TableView(WaveformCore core) { this.core = core; InitializeComponent(); }