private void btnAddBook_Click(object sender, EventArgs e)
        {
            AdminProfile ap = new AdminProfile();

            this.Hide();
            AddBook abs = new AddBook();

            abs.Show();
        }
示例#2
0
        private void btnCancel_Click(object sender, EventArgs e)
        {
            AddBook ap = new AddBook();

            this.Close();
            AdminProfile ab = new AdminProfile();

            ab.Show();
        }
示例#3
0
        private void linkLabel1_LinkClicked(object sender, LinkLabelLinkClickedEventArgs e)
        {
            DialogResult dr = MessageBox.Show("Do You Want To Add Book", "AddBooks", MessageBoxButtons.YesNo);

            if (dr == DialogResult.Yes)
            {
                AddBook ad = new AddBook();
                ad.Show();
            }
            else
            {
                MessageBox.Show("You have Cancel");
            }
        }