private void conditionEditorToolStripMenuItem_Click(object sender, EventArgs e) { ConditionForm conditionForm = new ConditionForm(); conditionForm.Show(); }
private void conditionEditorToolStripMenuItem_Click(object sender, EventArgs e) { if (formState != FormState.FormStateMain) return; foreach (Form form in Application.OpenForms) { if (form.Name == "ConditionForm") { form.BringToFront(); form.Show(); //! Show the form in case it's hidden (form as ConditionForm).formHidden = false; return; } } ConditionForm conditionForm = new ConditionForm(); conditionForm.formHidden = false; conditionForm.Show(); }