public void TestModalForm() { ExpectModal("Form-0", new ModalFormActivated(ModalFormHandler)); ModalMultiForm form = new ModalMultiForm(); form.Show(); ButtonTester buttonOne = new ButtonTester("myButton", "Form"); buttonOne.Click(); }
private void button1_Click(object sender, EventArgs e) { int i = int.Parse(myLabel.Text) + 1; myLabel.Text = i.ToString(); ModalMultiForm newForm = new ModalMultiForm(); newForm.Name = Name + "-" + (i - 1); newForm.Text = newForm.Name; newForm.ShowDialog(); }