public void PresentReplacement(FormLostBase replacee, DockStyle dock) { replacee.Hide(); Dock = dock; Attach(replacee.Parent as FormLostBase); FormClosed += (s, e) => { replacee.Show(); }; }
public void Attach(FormLostBase parent) { ResizeRedraw = true; TopLevel = false; parent.Controls.Add(this); Parent = parent; PerformLayout(); //Animate(); (this as Control).Show(); (this as Control).BringToFront(); (this as Control).Parent.Invalidate(ShadeRect(ThemeLost.ShadowSize), false); }
public FrameLost Present(FormLostBase parent, DockStyle dock) { Dock = dock; Attach(parent); return(this); }
public FrameLost Present(FormLostBase parent) { Present(parent, Dock); return(this); }