Пример #1
0
        private void RenameSelectedVariety()
        {
            var vm = new EditVarietyViewModel(_projectService.Project.Varieties, _selectedVariety.DomainVariety);

            if (_dialogService.ShowModalDialog(this, vm) == true)
            {
                _selectedVariety.DomainVariety.Name = vm.Name;
                Messenger.Default.Send(new DomainModelChangedMessage(false));
            }
        }
Пример #2
0
        private void AddNewVariety()
        {
            var vm = new EditVarietyViewModel(_projectService.Project.Varieties);

            if (_dialogService.ShowModalDialog(this, vm) == true)
            {
                var variety = new Variety(vm.Name);
                _projectService.Project.Varieties.Add(variety);
                _analysisService.Segment(variety);
                Messenger.Default.Send(new DomainModelChangedMessage(true));
            }
        }
Пример #3
0
 private void AddNewVariety()
 {
     var vm = new EditVarietyViewModel(_projectService.Project.Varieties);
     if (_dialogService.ShowModalDialog(this, vm) == true)
     {
         var variety = new Variety(vm.Name);
         _projectService.Project.Varieties.Add(variety);
         _analysisService.Segment(variety);
         Messenger.Default.Send(new DomainModelChangedMessage(true));
     }
 }
Пример #4
0
 private void RenameSelectedVariety()
 {
     var vm = new EditVarietyViewModel(_projectService.Project.Varieties, _selectedVariety.DomainVariety);
     if (_dialogService.ShowModalDialog(this, vm) == true)
     {
         _selectedVariety.DomainVariety.Name = vm.Name;
         Messenger.Default.Send(new DomainModelChangedMessage(false));
     }
 }