private void GSButton_Click(object sender, EventArgs e) { GerchbergSaxton.SetParameters(GerchbergSaxtonForm); GerchbergSaxtonForm.Show(); GerchbergSaxtonForm.BringToFront(); if (GerchbergSaxtonForm.WindowState == FormWindowState.Minimized) { GerchbergSaxtonForm.WindowState = FormWindowState.Normal; } }