private void linkLabel3_LinkClicked(object sender, LinkLabelLinkClickedEventArgs e)
        {
            Editbook eb = new Editbook();

            eb.Show();
            this.Hide();
        }
Example #2
0
 private void linkLabel2_LinkClicked(object sender, LinkLabelLinkClickedEventArgs e)
 {
     if (textBox1.Text == "admin" && textBox2.Text == "admin")
     {
         DialogResult dialogResult = MessageBox.Show("Edit Librarian", "Edit changes", MessageBoxButtons.YesNo);
         if (dialogResult == DialogResult.Yes)
         {
             editlib el = new editlib();
             el.Show();
         }
         else if (dialogResult == DialogResult.No)
         {
         }
         else
         {
             MessageBox.Show("Something Went Wrong During Editing Details");
         }
     }
     else
     {
         DialogResult dialogResult = MessageBox.Show("Edit Books", "Edit changes", MessageBoxButtons.YesNo);
         if (dialogResult == DialogResult.Yes)
         {
             Editbook eb = new Editbook();
             eb.Show();
         }
         else if (dialogResult == DialogResult.No)
         {
         }
         else
         {
             MessageBox.Show("Something Went Wrong!!!");
         }
     }
 }