private void OnResize(object sender, System.EventArgs e)
{
// save width and height
if(!settingState && _parent.WindowState == FormWindowState.Normal)
{
_thisState.Size = _parent.Size;
Debug.Assert(_thisState.Size == ((WindowSizeLocation)_stateByResolution[_thisState.ScreenSize]).Size);
}
}