Beispiel #1
0
        //new button
        private void toolStripButton3_Click(object sender, EventArgs e)
        {
            ManageBooks mb = new ManageBooks();

            for (int i = Application.OpenForms.Count - 1; i >= 0; i--)
            {
                if ((Application.OpenForms[i].Name == "ManageBooks"))
                {
                    // if(Form.ActiveForm == "ManageBooks");
                    Add_New_Book addbook = new Add_New_Book();
                    addbook.ShowDialog();
                }
                else if ((Application.OpenForms[i].Name == "ManageEmployee"))
                {
                    AddNewEmployee addemployee = new AddNewEmployee();
                    addemployee.ShowDialog();
                }
                else if ((Application.OpenForms[i].Name == "ManageIssue"))
                {
                    IssueBook issueBook = new IssueBook();
                    issueBook.ShowDialog();
                }


                else
                {
                }
            }
        }
Beispiel #2
0
        //addnew
        private void button1_Click(object sender, EventArgs e)
        {
            Add_New_Book addBook = new Add_New_Book();

            addBook.ShowDialog();
        }
Beispiel #3
0
        private void addNewBookToolStripMenuItem1_Click(object sender, EventArgs e)
        {
            Add_New_Book addNewBook = new Add_New_Book();

            addNewBook.ShowDialog();
        }