public void SetWindowInfo(WindowStateInfo WindowInfo) { this.mWindowInfo = WindowInfo; mParentForm.Location = new System.Drawing.Point(mWindowInfo.Left, mWindowInfo.Top); mParentForm.Size = new System.Drawing.Size(mWindowInfo.Width, mWindowInfo.Height); mParentForm.WindowState = mWindowInfo.WindowState; }