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); }