// 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."); } }
public CreateShiftForm(HomeMenuForm homeMenuForm) { InitializeComponent(); _homeMenuForm = homeMenuForm; }
public CreateNewClientForm(HomeMenuForm homeMenuForm) { InitializeComponent(); _homeMenuForm = homeMenuForm; }
public ExportJobsForm(HomeMenuForm homeMenuForm) { InitializeComponent(); _homeMenuForm = homeMenuForm; }
private HomeMenuForm _homeMenuForm; // Keeps track of the parent form of this form. public EditClientInfo(HomeMenuForm homeMenuForm) { InitializeComponent(); _homeMenuForm = homeMenuForm; }
public CreateEmployeeForm(HomeMenuForm homeMenuForm) { InitializeComponent(); _homeMenuForm = homeMenuForm; }