示例#1
0
文件: Staff.cs 项目: KeRusty/ITP_RMSS
 private void ExtButton_Click(object sender, EventArgs e)
 {
     DialogResult result2 = MessageBox.Show("Are you sure you want to quit?", "Confirmation", MessageBoxButtons.YesNo);
     if (result2 == DialogResult.Yes)
     {
         Application.Exit();
     }
     else
     {
         Staff i = new Staff();
         i.Show();
         this.Close();
     }
 }
示例#2
0
文件: Staff.cs 项目: KeRusty/ITP_RMSS
 private void bckButton_Click(object sender, EventArgs e)
 {
     DialogResult result = MessageBox.Show("Do you really want to go back?", "Confirmation", MessageBoxButtons.YesNoCancel);
     if (result == DialogResult.Yes)
     {
         Dashboard d = new Dashboard();
         d.Show();
         this.Close();
     }
     else
     {
         Staff i = new Staff();
         i.Show();
         this.Close();
     }
 }
示例#3
0
 private void pictureBox4_Click(object sender, EventArgs e)
 {
     Staff s = new Staff();
     s.Show();
     this.Close();
 }