private void frmDetachedTab_FormClosing(object sender, FormClosingEventArgs e) { if (tab.Detached) { if (tab.AllowClose) { tab.Close(); } else { tab.AttachTo(strip, container); } } }
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); } } }