/// <summary> /// Method to invoke when the Add command is executed. /// </summary> private async Task OnAddSeriesExecuteAsync() { var viewModel = new SeriesDefinitionViewModel(Axes); if (await _uiVisualizerService.ShowDialogAsync(viewModel) ?? false) { Config.Series.Add(viewModel.SeriesDefinitionModel); ViewModelCommandManager.InvalidateCommands(true); } }
/// <summary> /// Method to invoke when the Edit command is executed. /// </summary> private async Task OnEditSeriesExecuteAsync() { var viewModel = new SeriesDefinitionViewModel(Axes, SelectedSeries); await _uiVisualizerService.ShowDialogAsync(viewModel); }