private void simpleButton3_Click(object sender, EventArgs e) { if (formSwitchCurve == null || formSwitchCurve.IsDisposed) { formSwitchCurve = new FormSwitchCurve(); //formDayCurve.Owner = this; formSwitchCurve.Show(); } else { formSwitchCurve.WindowState = FormWindowState.Maximized; } }