Exemplo n.º 1
0
 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);
 }
Exemplo n.º 2
0
 //
 private void Form1_Load(object sender, EventArgs e)
 {
     //read file
     POManager.ReadFromFile(out personList, fileName);
     toggleLoadView(true);
 }
Exemplo n.º 3
0
 private void frmEmpMan_FormClosing(Object sender, System.Windows.Forms.FormClosingEventArgs e)
 {
     // Save serialized binary file
     POManager.writeToFile(ref personList, FileName);
 } // end frmEmpMan_FormClosing