private void EmployeeJobMaterial_Load(object sender, EventArgs e) { try { MaximizeBox = false; MinimizeBox = false; this.HelpButton = true; hlpEmpJob.HelpNamespace = Application.StartupPath + "\\landScapeEmployee.chm"; } catch (Exception ex) { MessageBox.Show(ex.Message, "The help files failed to load."); } try { EmployeeProgOps.LoadCheckList(cklAssignWorkers); } catch (SqlException) { MessageBox.Show("The program failed to connect to the database. Please check your internet connection. If the issue persists then contact the help desk."); } catch (Exception ex) { MessageBox.Show(ex.Message); } }
//searches the customer database. private void btnSearch_Click(object sender, EventArgs e) { try { EmployeeProgOps.empCustSearch(dgvEmpCustomer, rdoSearchName, rdoSearchID, txtSearch.Text); } catch (Exception ex) { MessageBox.Show(ex.Message); } }
private void btnSearchSchedule_Click(object sender, EventArgs e) { try { EmployeeProgOps.ScheduleSearch(txtSearchSchedule.Text, dgvEmpWorkerSch); } catch (Exception ex) { MessageBox.Show(ex.Message); } }
private void btnConfirmWorkers_Click(object sender, EventArgs e) { try { EmployeeProgOps.startAssign(txtWorkerJobID, cklAssignWorkers); lblUpdated.Visible = true; } catch (Exception ex) { MessageBox.Show(ex.Message); } }
private void btnConfirmCustomer_Click(object sender, EventArgs e) { try { EmployeeProgOps.startCustomers(txtCustFirst, txtCustLast, txtCustAddress, txtCustEmail, txtCustCity, txtCustZip); lblUpdated.Visible = true; } catch (Exception ex) { MessageBox.Show(ex.Message); } }
private void btnConfirmJob_Click(object sender, EventArgs e) { try { EmployeeProgOps.startJobs(txtJobCustId, txtJobAddress, txtJobType, txtStart, txtEnd, txtJobSize, txtPrice); lblUpdated.Visible = true; } catch (Exception ex) { MessageBox.Show(ex.Message); } }
private void btnConfirmMaterials_Click(object sender, EventArgs e) { try { EmployeeProgOps.startMaterials(txtMaterialUnit, txtMaterialName, txtMaterialPrice, txtMaterialDate, txtMaterialJobID); EmployeeProgOps.assignMaterialsToJob(txtMaterialJobID); lblUpdated.Visible = true; } catch (Exception ex) { MessageBox.Show(ex.Message); } }
private void EmployeeCustomer_Load(object sender, EventArgs e) { MinimizeBox = false; MaximizeBox = false; this.HelpButton = true; hlpEmpCustomer.HelpNamespace = Application.StartupPath + "\\landScapeEmployee.chm"; try { EmployeeProgOps.empCustLoad(dgvEmpCustomer); } catch (Exception ex) { MessageBox.Show(ex.Message); } }
private void EmployeeMain_Load(object sender, EventArgs e) { MinimizeBox = false; MaximizeBox = false; this.HelpButton = true; try { hlpEmployees.HelpNamespace = Application.StartupPath + "\\landScapeEmployee.chm"; EmployeeProgOps.mainLoad(dgvEmpJobInfo, dgvEmpWorkerSch); } catch (SqlException) { MessageBox.Show("The connection to the database may be down. Please check your internet connection. If the problem persists then please contact support."); } catch (Exception ex) { MessageBox.Show(ex.Message); } }
private void btnExit_Click(object sender, EventArgs e) { EmployeeProgOps.CloseAll(); this.Close(); }