예제 #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.");
     }
 }
예제 #2
0
 public CreateShiftForm(HomeMenuForm homeMenuForm)
 {
     InitializeComponent();
     _homeMenuForm = homeMenuForm;
 }
예제 #3
0
 public CreateNewClientForm(HomeMenuForm homeMenuForm)
 {
     InitializeComponent();
     _homeMenuForm = homeMenuForm;
 }
예제 #4
0
 public ExportJobsForm(HomeMenuForm homeMenuForm)
 {
     InitializeComponent();
     _homeMenuForm = homeMenuForm;
 }
예제 #5
0
        private HomeMenuForm _homeMenuForm; // Keeps track of the parent form of this form.

        public EditClientInfo(HomeMenuForm homeMenuForm)
        {
            InitializeComponent();
            _homeMenuForm = homeMenuForm;
        }
예제 #6
0
 public CreateEmployeeForm(HomeMenuForm homeMenuForm)
 {
     InitializeComponent();
     _homeMenuForm = homeMenuForm;
 }