private void tab_TabDetached(object sender, EventArgs e) { RadegastTab tab = (RadegastTab)sender; frmDetachedTab form = (frmDetachedTab)tab.Owner; form.ReattachStrip = tstTabs; form.ReattachContainer = toolStripContainer1.ContentPanel; }
public void Detach(RadegastInstance instance) { if (!AllowDetach) { return; } if (Detached) { return; } Button.Visible = false; Owner = new frmDetachedTab(instance, this); Owner.Show(); Owner.Focus(); Detached = true; OnTabDetached(EventArgs.Empty); }