Example #1
0
 // Open a new form that leads to Home (online version) of the program.
 private void btn_home_Click(object sender, EventArgs e)
 {
     // Make sure that the user really is online before connecting.
     UpdateOnlineStatus();
     if (btn_home.Enabled == true)
     {
         Form homeMenuForm = new HomeMenuForm(this);
         homeMenuForm.Show();
         this.Hide();
     }
     else
     {
         MessageBox.Show("Cannot connect to the internet.");
     }
 }
Example #2
0
 private void CreateShiftForm_FormClosed(object sender, FormClosedEventArgs e)
 {
     _homeMenuForm.Show();
 }
Example #3
0
 private void ExportJobsForm_FormClosed(object sender, FormClosedEventArgs e)
 {
     _homeMenuForm.Show();
 }
Example #4
0
 private void EditClientInfo_FormClosed(object sender, FormClosedEventArgs e)
 {
     _homeMenuForm.Show();
 }