SuperPutty.ApplicationPanel.MoveWindow C# (CSharp) Method

MoveWindow() private method

private MoveWindow ( string src ) : void
src string
return void
        private void MoveWindow(string src)
        {
            // if there is more than one screen and we're maximizing the window on the non-primary screen
            // and the non-primary screen has greater resolution than the primary, do an extra move window
            if (Screen.AllScreens.Length > 1 && SuperPuTTY.MainForm.WindowState == FormWindowState.Maximized)
            {
                Screen screen = Screen.FromControl(this);
                Screen primary = Screen.PrimaryScreen;
                int screenArea = screen.WorkingArea.Height * screen.WorkingArea.Width;
                int primaryArea = primary.WorkingArea.Height * primary.WorkingArea.Width;
                if (screen != primary && screenArea > primaryArea)
                {
                    this.MoveWindow("2ndScreenFix", 0, 1);
                }
            }
            MoveWindow(src, 0, 0);
        }

Same methods

ApplicationPanel::MoveWindow ( string src, int x, int y ) : void