Exemple #1
0
        /// <summary>
        /// Method to invoke when the Add command is executed.
        /// </summary>
        private async Task OnAddAxisExecuteAsync()
        {
            var viewModel = new AxisDefinitionViewModel(new AxisDefinitionModel());

            if (await _uiVisualizerService.ShowDialogAsync(viewModel) ?? false)
            {
                Axes.Add(viewModel.AxisDefinitionModel);
                ViewModelCommandManager.InvalidateCommands(true);
            }
        }
Exemple #2
0
 /// <summary>
 /// Method to invoke when the Edit command is executed.
 /// </summary>
 private async Task OnEditAxisExecuteAsync()
 {
     var viewModel = new AxisDefinitionViewModel(SelectedAxis);
     await _uiVisualizerService.ShowDialogAsync(viewModel);
 }