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