public void DoCloseTab(CommitEditorTabViewModel vm) { MainWindowModel.RemoveTab(vm); vm.Model.CloseRequested -= CloseTab; ((CommitEditorTabModel)vm.Model).CommitRequest -= Commit; ((CommitEditorTabModel)vm.Model).FreeEvents(); }
public void DoCloseTab(CommitViewerTabViewModel vm) { MainWindowModel.RemoveTab(vm); vm.Model.CloseRequested -= CloseTab; CommitViewers.Remove(((CommitViewerTabModel)(vm).Model).Commit); ((CommitViewerTabModel)vm.Model).FreeEvents(); }
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); }
public void CloseCommitEditorTab() { MainWindowModel.RemoveTab(CommitEditorTab); }