Ejemplo n.º 1
0
        public void TestModalForm()
        {
            ExpectModal("Form-0", new ModalFormActivated(ModalFormHandler));

            ModalMultiForm form = new ModalMultiForm();
            form.Show();

            ButtonTester buttonOne = new ButtonTester("myButton", "Form");

            buttonOne.Click();
        }
Ejemplo n.º 2
0
        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();
        }
Ejemplo n.º 3
0
        public void TestModalForm()
        {
            ExpectModal("Form-0", new ModalFormActivated(ModalFormHandler));

            ModalMultiForm form = new ModalMultiForm();

            form.Show();

            ButtonTester buttonOne = new ButtonTester("myButton", "Form");

            buttonOne.Click();
        }
Ejemplo n.º 4
0
        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();
        }