Example #1
0
        private void checkOutToolStripMenuItem_Click(object sender, EventArgs e)
        {
            //Function for going to Form 6, which is used to Check-Out a book to a customer| from drop down menu
            checkOutForm checkOut = new checkOutForm();

            if (Application.OpenForms[checkOut.Name] == null)
            {
                checkOut.Show();
            }
            else
            {
                Application.OpenForms[checkOut.Name].Focus();
            }
        }
Example #2
0
        private void button5_Click(object sender, EventArgs e)
        {
            //Function for going to Form 6, which is used to Check-Out a book to a customer
            checkOutForm checkOut = new checkOutForm();

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