예제 #1
0
 private void DisposeController()
 {
     if (_modelEditorViewController != null) {
         _modelEditorViewController.CurrentAspectChanged -= ModelEditorViewControllerOnCurrentAspectChanged;
         _modelEditorViewController.Modifying -= Model_Modifying;
         _modelEditorViewController.ChangeAspectAction.ExecuteCompleted -= ChangeAspectActionOnExecuteCompleted;
         _modelEditorViewController.SaveSettings();
         _modelEditorViewController = null;
     }
 }
예제 #2
0
 private void DisposeController()
 {
     if (_modelEditorViewController != null)
     {
         _modelEditorViewController.CurrentAspectChanged -= ModelEditorViewControllerOnCurrentAspectChanged;
         _modelEditorViewController.Modifying            -= Model_Modifying;
         _modelEditorViewController.ChangeAspectAction.ExecuteCompleted -= ChangeAspectActionOnExecuteCompleted;
         _modelEditorViewController.ModelAttributesPropertyEditorController.PropertyChanged -= ModelAttributesPropertyEditorControllerOnPropertyChanged;
         if (_modelEditorViewController.ModelEditorControl != null)
         {
             _modelEditorViewController.SaveSettings();
         }
         _modelEditorViewController.SelectedNodes.Clear();
         _modelEditorViewController = null;
     }
 }