Beispiel #1
0
 public void DoCloseTab(CommitEditorTabViewModel vm)
 {
     MainWindowModel.RemoveTab(vm);
     vm.Model.CloseRequested -= CloseTab;
     ((CommitEditorTabModel)vm.Model).CommitRequest -= Commit;
     ((CommitEditorTabModel)vm.Model).FreeEvents();
 }
Beispiel #2
0
 public void DoCloseTab(CommitViewerTabViewModel vm)
 {
     MainWindowModel.RemoveTab(vm);
     vm.Model.CloseRequested -= CloseTab;
     CommitViewers.Remove(((CommitViewerTabModel)(vm).Model).Commit);
     ((CommitViewerTabModel)vm.Model).FreeEvents();
 }
Beispiel #3
0
 public void DoCloseTab(MainTabViewModel vm)
 {
     MainWindowModel.RemoveTab(vm);
     vm.Model.CloseRequested -= CloseTab;
     vm.Model.MouseDown      -= (args) => CanvasMouseDown?.Invoke(null, args);
     vm.Model.MouseUp        -= (args) => CanvasMouseUp?.Invoke(null, args);
 }
Beispiel #4
0
 public void CloseCommitEditorTab()
 {
     MainWindowModel.RemoveTab(CommitEditorTab);
 }