public SolverLearnRowViewModel(SelectionLearnStatisticViewModel parent)
 {
     CurSelection    = parent.CurSelection;
     LearningDetails = new ObservableCollection <LearningDetailsViewModel>();
     LearningDetails.Add(new LearningDetailsViewModel(this)
     {
         SelectedScenario = "Сценарий 1", SelectedPreprocessing = "Предобработка 1"
     });
     addHandler = new ActionHandler(() =>
     {
         LearningDetails.Add(
             new LearningDetailsViewModel(this)
         {
             SelectedScenario      = "Сценарий 1",
             SelectedPreprocessing = "Предобработка 1"
         });
     }, e => true);
     deleteHandler = new ActionHandler(() => parent.DeleteSolverToLearn(this), e => true);
 }
Exemple #2
0
 public SelectionLeaf(models.Task task, models.Selection selection, TaskTreeViewModel vm)
 {
     Title         = selection.Name;
     parentTask    = task.Name;
     deleteHandler = new ActionHandler(
         () =>
     {
         new dms.services.preprocessing.DataHelper().deleteSelection(selection);
         vm.UpdateTaskTree();
     }, e => true);
     showSelectionInfoHandler = new ActionHandler(
         () =>
     {
         SelectionInfoViewModel t = new SelectionInfoViewModel(task.ID, selection.ID);
         vm.SendRequestCreateView(t);
     }, e => true);
     showSelectionLearnHandler = new ActionHandler(
         () =>
     {
         var t = new SelectionLearnStatisticViewModel(selection, task.Name);
         vm.SendRequestCreateView(t);
     }, e => true);
 }