예제 #1
0
 public void Delete()
 {
     //Kill the focus sets
     foreach (MutuallyExclusiveSet set in MutualyExclusive.ToList())
     {
         set.DeleteSetRelations();
     }
     foreach (PrerequisitesSet set in Prerequisite.ToList())
     {
         set.DeleteSetRelations();
     }
     Messenger.Default.Send(new NotificationMessage(this, "DeleteFocus"));
 }
 public void Delete()
 {
     UndoService.Current[GetUndoRoot()].BeginChangeSetBatch("FullyDeleteFocus", false);
     //Kill the focus sets
     foreach (MutuallyExclusiveSetModel set in MutualyExclusive.ToList())
     {
         set.DeleteSetRelations();
     }
     foreach (PrerequisitesSetModel set in Prerequisite.ToList())
     {
         set.DeleteSetRelations();
     }
     Messenger.Default.Send(new NotificationMessage(this,
                                                    new ViewModelLocator().Main.SelectedTab, "DeleteFocus"));
 }