Exemplo n.º 1
0
        private void editBookToolStripMenuItem_Click(object sender, EventArgs e)
        {
            bookEditForm editBook = new bookEditForm();

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

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