public LiveGraphView() { InitializeComponent(); this._vm = new LiveGraphViewModel(); this.DataContext = this._vm; this._vm.LiveGraphSuspendNotifiCation = new Action(LiveGraphChart.SuspendSeriesNotification); this._vm.LiveGraphResumeNotification = new Action(LiveGraphChart.ResumeSeriesNotification); this._vm.COPSuspendNotifiCation = new Action(CopChart.SuspendSeriesNotification); this._vm.COPResumeNotification = new Action(CopChart.ResumeSeriesNotification); }
public MainViewModel() { UpdateViewCommand = new UpdateViewCommand(this); SelectedViewModel = new LiveGraphViewModel(); //RegisterViews(); }
public CloseButtonCommand(LiveGraphViewModel viewModel) { this.ViewModel = viewModel; }
public ConnectButtonCommand(LiveGraphViewModel viewModel) { this.ViewModel = viewModel; }
public RecordButtonCommand(LiveGraphViewModel viewModel) { this.ViewModel = viewModel; }