protected virtual void FormResizeEnd(object sender, EventArgs e) { SaveDimension(); MainLayout.Visible = true; ResizeMainPanel(); SidePanel.AdjustSize(); }
protected void MaximizeToNormal() { WindowState = FormWindowState.Normal; Opacity = 0; Helper.ScaleTo(this, DefaultWidth, DefaultHeight, false); Helper.CenterToPoint(this, ClientCenter); ResizeMainPanel(); SidePanel.AdjustSize(); Opacity = 1; }
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(); } }