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