SaveMainFormSize() public static method

public static SaveMainFormSize ( int width, int height ) : void
width int
height int
return void
Exemplo n.º 1
0
 private void MainForm_ResizeEnd(object sender, EventArgs e)
 {
     if (WindowState == FormWindowState.Normal)
     {
         Config.SaveMainFormSize(Width, Height);
     }
 }
Exemplo n.º 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];
            }
        }