/// <summary> /// Event handler to adjust this form to the new location/size of the parent /// </summary> /// <param name="sender"></param> /// <param name="args"></param> private void parent_SizeChanged(Object sender, EventArgs args) { if (GUIGraphicsContext.form.WindowState == FormWindowState.Minimized) { _minimized = true; return; } if (!_minimized) { singleton.Dispose(); } _minimized = false; }