コード例 #1
0
ファイル: Inventory.cs プロジェクト: KeRusty/ITP_RMSS
        private void button1_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
            {
                Inventory i = new Inventory();
                i.Show();
                this.Close();
            }
        }
コード例 #2
0
ファイル: Inventory.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
     {
         Inventory i = new Inventory();
         i.Show();
         this.Close();
     }
 }
コード例 #3
0
ファイル: Dashboard.cs プロジェクト: KeRusty/ITP_RMSS
 private void pictureBox9_Click(object sender, EventArgs e)
 {
     Inventory i = new Inventory();
     i.Show();
     this.Close();
 }