Example #1
0
 protected virtual void FormResizeEnd(object sender, EventArgs e)
 {
     SaveDimension();
     MainLayout.Visible = true;
     ResizeMainPanel();
     SidePanel.AdjustSize();
 }
Example #2
0
 protected void MaximizeToNormal()
 {
     WindowState = FormWindowState.Normal;
     Opacity     = 0;
     Helper.ScaleTo(this, DefaultWidth, DefaultHeight, false);
     Helper.CenterToPoint(this, ClientCenter);
     ResizeMainPanel();
     SidePanel.AdjustSize();
     Opacity = 1;
 }
Example #3
0
        protected void ZoomToMax(object sender, EventArgs e)
        {
            Helper.ScaleTo(this, Width + 20, Height + 20);
            ResizeMainPanel();
            SidePanel.AdjustSize();

            if (Width >= Viewport.Width && Height >= Viewport.Height)
            {
                bottomPanel.Visible = true;
                WindowState         = FormWindowState.Maximized;
                ResizeMainPanel();
                SidePanel.AdjustSize();
                zoomTimer.Tick -= ZoomToMax;
                zoomTimer.Stop();
            }
        }