Exemplo n.º 1
0
        private void linkLabel2_LinkClicked(object sender, LinkLabelLinkClickedEventArgs e)
        {
            editlib el = new editlib();

            el.Show();
            this.Hide();
        }
Exemplo n.º 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!!!");
         }
     }
 }