public void RestoreWindow() { if (WindowState == FormWindowState.Minimized) { UI.RestoreWindow(this); } }