示例#1
0
 protected void OnCloseTab(bool askSave, CloseSource source = CloseSource.Self)
 {
     if (askSave)
     {
         TabParent.AskToCloseTab(this, source);
     }
     else
     {
         TabParent.ForceCloseTab(this, source);
     }
 }
示例#2
0
        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));
        }
示例#3
0
 protected void OnCloseTab()
 {
     //TODO закрывать через навигатор
     TabParent?.AskToCloseTab(this);
 }