Ejemplo n.º 1
0
 // Event handler for then the form loads.
 private void frmEmpMan_Load(object sender, EventArgs e)
 {
     POManagerClass.readFromFile(out personList, serialFile);
     FormControllerClass.enableDisplay(Globals.newForm);
     // get initial Tooltips
     toolTip1.SetToolTip(btnCreateManager, ttCreateManager);
     toolTip1.SetToolTip(btnCreateWorker, ttCreateWorker);
     toolTip1.SetToolTip(btnCreateClient, ttCreateClient);
     toolTip1.SetToolTip(btnClearEntryForm, ttClear);
     toolTip1.SetToolTip(btnDelete, ttDelete);
     toolTip1.SetToolTip(btnEditUpdate, ttEdit);
     toolTip1.SetToolTip(btnFindDisplay, ttFind);
     toolTip1.SetToolTip(btnExit, ttExit);
     toolTip1.SetToolTip(txtControlManagerSalary, ttManagerSalary);
     toolTip1.SetToolTip(txtControlManagerBonus, ttManagerBonus);
     toolTip1.SetToolTip(txtControlWorkerHourlyPay, ttWorkerHourlyPay);
     toolTip1.SetToolTip(txtControlPersonName, ttPersonName);
     toolTip1.SetToolTip(txtControlPersonBirthDate, ttPersonBirthDate);
     toolTip1.SetToolTip(txtControlPersonID, ttPersonID);
     toolTip1.SetToolTip(txtControlEmployeeJobTitle, ttEmployeeJobTitle);
     toolTip1.SetToolTip(txtControlClientType, ttClientType);
     toolTip1.SetToolTip(txtControlSearchID, ttSearchID);
 }
Ejemplo n.º 2
0
 // Button event handler for the exit button
 private void btnExit_Click(object sender, EventArgs e)
 {
     POManagerClass.writeToFile(ref personList, serialFile);
     MessageBox.Show(personList.ListString());
     Application.Exit();
 }