Пример #1
0
        private void linkLabel4_LinkClicked(object sender, LinkLabelLinkClickedEventArgs e)
        {
            dellib dl = new dellib();

            dl.Show();
            this.Hide();
        }
Пример #2
0
 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");
         }
     }
 }