Esempio n. 1
0
 private void btnEdit_Click(object sender, EventArgs e)
 {
     foreach (AStaff aStaff in StaffObjList)
     {
         if (cboStaff.Text == aStaff.StaffFirstName + " " + aStaff.StaffLastName)
         {
             staffID = aStaff.StaffID;
         }
     }
     if (staffID != 0)
     {
         StaffAddEdit form = new StaffAddEdit(staffID);
         form.ShowDialog();
         StaffSelect_Load(null, null);
     }
 }
Esempio n. 2
0
        private void btnAdd_Click(object sender, EventArgs e)
        {
            StaffAddEdit form = new StaffAddEdit();

            form.ShowDialog();
        }