예제 #1
0
        private void linkLabel3_LinkClicked(object sender, LinkLabelLinkClickedEventArgs e)
        {
            viewlib vl = new viewlib();

            vl.Show();
            this.Hide();
        }
예제 #2
0
 private void linkLabel3_LinkClicked(object sender, LinkLabelLinkClickedEventArgs e)
 {
     if (textBox1.Text == "admin" && textBox2.Text == "admin")
     {
         DialogResult dialogResult = MessageBox.Show("View Librarian", "", MessageBoxButtons.YesNo);
         if (dialogResult == DialogResult.Yes)
         {
             viewlib vl = new viewlib();
             vl.Show();
         }
         else if (dialogResult == DialogResult.No)
         {
         }
         else
         {
             MessageBox.Show("Something Went Wrong During Viewing");
         }
     }
     else
     {
         DialogResult dialogResult = MessageBox.Show("View Books", "", MessageBoxButtons.YesNo);
         if (dialogResult == DialogResult.Yes)
         {
             ViewBooks vb = new ViewBooks();
             vb.Show();
         }
         else if (dialogResult == DialogResult.No)
         {
         }
         else
         {
             MessageBox.Show("Something Went Wrong During Viewing");
         }
     }
 }