private void linkLabel4_LinkClicked(object sender, LinkLabelLinkClickedEventArgs e) { delBooks db = new delBooks(); db.Show(); this.Hide(); }
private void linkLabel4_LinkClicked(object sender, LinkLabelLinkClickedEventArgs e) { if (textBox1.Text == "admin" && textBox2.Text == "admin") { DialogResult dialogResult = MessageBox.Show("Delete Librarian", " ", MessageBoxButtons.YesNo); if (dialogResult == DialogResult.Yes) { dellib dl = new dellib(); dl.Show(); } else if (dialogResult == DialogResult.No) { } else { MessageBox.Show("Something Went Wrong During Deleting"); } } else { DialogResult dialogResult = MessageBox.Show("Delete Books", " ", MessageBoxButtons.YesNo); if (dialogResult == DialogResult.Yes) { delBooks db = new delBooks(); db.Show(); } else if (dialogResult == DialogResult.No) { } else { MessageBox.Show("Something Went Wrong During Deleting"); } } }