Forex_Strategy_Builder.FormState.Restore C# (CSharp) Method

Restore() public static method

public static Restore ( Form targetForm ) : void
targetForm System.Windows.Forms.Form
return void
        public static void Restore(Form targetForm)
        {
            targetForm.WindowState     = winState;
            targetForm.FormBorderStyle = brdStyle;
            targetForm.Bounds          = bounds;
            //targetForm.TopMost         = topMost;
            IsMaximized = false;
        }

Usage Example

示例#1
0
        /// <summary>
        /// Changes the Full Screen mode.
        /// </summary>
        protected override void MenuViewFullScreenOnClick(object sender, EventArgs e)
        {
            var mi = (ToolStripMenuItem)sender;

            if (mi.Checked)
            {
                FormState.Maximize(this);
            }
            else
            {
                FormState.Restore(this);
            }
        }