private void btnAddBook_Click(object sender, EventArgs e) { AdminProfile ap = new AdminProfile(); this.Hide(); AddBook abs = new AddBook(); abs.Show(); }
private void btnCancel_Click(object sender, EventArgs e) { AddBook ap = new AddBook(); this.Close(); AdminProfile ab = new AdminProfile(); ab.Show(); }
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"); } }