private void frmEmpMan_Load(object sender, EventArgs e) { grpClient.Enabled = false; grpEmployee.Enabled = false; grpManager.Enabled = false; grpWorker.Enabled = false; txtPersonName.Enabled = false; txtPersonBirthDate.Enabled = false; btnEditUpdate.Enabled = false; btnDelete.Enabled = false; txtPersonID.Focus(); POManager.ReadFromFile(out personList, FileName); }
// private void Form1_Load(object sender, EventArgs e) { //read file POManager.ReadFromFile(out personList, fileName); toggleLoadView(true); }
private void frmEmpMan_FormClosing(Object sender, System.Windows.Forms.FormClosingEventArgs e) { // Save serialized binary file POManager.writeToFile(ref personList, FileName); } // end frmEmpMan_FormClosing