コード例 #1
0
        private void button1_Click(object sender, EventArgs e)
        {
            FormManage formManage = new FormManage(manage);
            var        thread     = new Thread(() => Program.Start(formManage));

            thread.Start();
            this.Close();
        }
コード例 #2
0
        private void button1_Click(object sender, EventArgs e)
        {
            // This is the button to travel back to the watch the list of contract again:
            Form manageContracts = new FormManage(this.manager);
            var  thread          = new Thread(() => Program.Start(manageContracts));

            thread.Start();
            this.Close();
        }
コード例 #3
0
        private void button2_Click_1(object sender, EventArgs e)
        {
            // This is the button to travel back to the main menu
            Form formManage = new FormManage(this.manage);
            var  thread     = new Thread(() => Program.Start(formManage));

            thread.Start();
            this.Close();
        }
コード例 #4
0
 // This is where the real update happens when the user confirm the update.
 private void UpdateAndGoBackButton_Click(object sender, EventArgs e)
 {
     if (CheckContractValidity())
     {
         updateContractInfoInDatabase();
         MessageBox.Show("Update Successfully");
         Form manageContracts = new FormManage(this.manager);
         var  thread          = new Thread(() => Program.Start(manageContracts));
         thread.Start();
         this.Close();
     }
 }