Esempio n. 1
0
 private void frmDetachedTab_FormClosing(object sender, FormClosingEventArgs e)
 {
     if (tab.Detached)
     {
         if (tab.AllowClose)
         {
             tab.Close();
         }
         else
         {
             tab.AttachTo(strip, container);
         }
     }
 }
Esempio n. 2
0
 private void frmDetachedTab_FormClosing(object sender, FormClosingEventArgs e)
 {
     tab.Control.TextChanged -= new EventHandler(Control_TextChanged);
     if (tab.Detached)
     {
         if (tab.CloseOnDetachedClose)
         {
             tab.Close();
         }
         else
         {
             tab.AttachTo(strip, container);
         }
     }
 }