SaveMainFormSize() public static method

public static SaveMainFormSize ( int width, int height ) : void
width int
height int
return void
示例#1
0
 private void MainForm_ResizeEnd(object sender, EventArgs e)
 {
     if (WindowState == FormWindowState.Normal)
     {
         Config.SaveMainFormSize(Width, Height);
     }
 }
示例#2
0
        private void UpdateFormSize()
        {
            int[] size = Config.ReadMainFormSize();

            if ((size[0] == 0) || (size[1] == 0))
            {
                Config.SaveMainFormSize(Width, Height);
            }
            else
            {
                Width  = size[0];
                Height = size[1];
            }
        }