Beispiel #1
0
 public void PresentReplacement(FormLostBase replacee, DockStyle dock)
 {
     replacee.Hide();
     Dock = dock;
     Attach(replacee.Parent as FormLostBase);
     FormClosed += (s, e) =>
     {
         replacee.Show();
     };
 }
Beispiel #2
0
        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);
        }
Beispiel #3
0
 public FrameLost Present(FormLostBase parent, DockStyle dock)
 {
     Dock = dock;
     Attach(parent);
     return(this);
 }
Beispiel #4
0
 public FrameLost Present(FormLostBase parent)
 {
     Present(parent, Dock);
     return(this);
 }