예제 #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);
     }
 }
예제 #2
0
        private void btnAdd_Click(object sender, EventArgs e)
        {
            StaffAddEdit form = new StaffAddEdit();

            form.ShowDialog();
        }