private void AddComposition() { var viewModel = new ObjectNameViewModel("Введите имя композиции"); bool result = _dialogService.ShowResultDialog(viewModel); if (!result) { return; } string name = viewModel.Name; _updatedComposition = CheckableCompositionViewModel.CreateEmpty(name, SelectedTemplate); _navigator.NavigateForward <CompositionsEditorViewModel>(this, _updatedComposition); }
private void AddTemplate() { var viewModel = new ObjectNameViewModel("Введите имя шаблона"); bool result = _dialogService.ShowResultDialog(viewModel); if (!result) { return; } string name = viewModel.Name; _updatedTemplate = new CheckableTemplateViewModel(name, 500, 500, 0, Enumerable.Empty <TemplateImageViewModel>(), TemplateEditorViewModel.CreateDefaultBackground(), null, false); _updatedTemplate.IsDefaultBackground = true; _navigator.NavigateForward <TemplateEditorViewModel>(this, _updatedTemplate); }
private void AddComposition() { var viewModel = new ObjectNameViewModel("Введите имя композиции"); bool result = _dialogService.ShowResultDialog(viewModel); if (!result) return; string name = viewModel.Name; _updatedComposition = CheckableCompositionViewModel.CreateEmpty(name, SelectedTemplate); _navigator.NavigateForward<CompositionsEditorViewModel>(this, _updatedComposition); }
private void AddTemplate() { var viewModel = new ObjectNameViewModel("Введите имя шаблона"); bool result = _dialogService.ShowResultDialog(viewModel); if (!result) return; string name = viewModel.Name; _updatedTemplate = new CheckableTemplateViewModel(name, 500, 500, 0, Enumerable.Empty<TemplateImageViewModel>(), TemplateEditorViewModel.CreateDefaultBackground(), null, false); _updatedTemplate.IsDefaultBackground = true; _navigator.NavigateForward<TemplateEditorViewModel>(this, _updatedTemplate); }