private Form checkifwinopen(Type FormType) { foreach (Form OpenForm in Application.OpenForms) { if (OpenForm.GetType() == FormType) { return(OpenForm); } } return(null); }
private void bunifuFlatButton2_Click(object sender, EventArgs e) { OpenForm dsfgdfg = new OpenForm(); dsfgdfg.ShowDialog(); }