protected void OnCloseTab(bool askSave, CloseSource source = CloseSource.Self) { if (askSave) { TabParent.AskToCloseTab(this, source); } else { TabParent.ForceCloseTab(this, source); } }
public bool AskToCloseTab(ITdiTab tab, CloseSource source = CloseSource.External) { if (tab == ActiveDialog) { return(CloseDialog(source, true)); } if (tab == Journal) { return(TabParent.AskToCloseTab(this, source)); } return(TabParent.AskToCloseTab(tab, source)); }
protected void OnCloseTab() { //TODO закрывать через навигатор TabParent?.AskToCloseTab(this); }