Exemplo n.º 1
0
        private void editCustomerToolStripMenuItem_Click(object sender, EventArgs e)
        {
            customerEditForm editCustomer = new customerEditForm();

            if (Application.OpenForms[editCustomer.Name] == null)
            {
                editCustomer.Show();
            }
            else
            {
                Application.OpenForms[editCustomer.Name].Focus();
            }
        }
Exemplo n.º 2
0
        private void button3_Click(object sender, EventArgs e)
        {
            //Function for going to Form 4, which is used to remove a customer
            customerEditForm removeCustomer = new customerEditForm();

            if (Application.OpenForms[removeCustomer.Name] == null)
            {
                removeCustomer.Show();
            }
            else
            {
                Application.OpenForms[removeCustomer.Name].Focus();
            }
        }