Example #1
0
        private void DoLoadStaffPositionData(object sender, DoWorkEventArgs doEA)
        {
            GetStaffList workerStaffList = new GetStaffList((int)doEA.Argument, true);

            workerStaffList.Send(); //we have got all staff datas
            doEA.Result = workerStaffList;
        }
Example #2
0
 private void DoLoadStaffPositionDataCompleted(object sender, RunWorkerCompletedEventArgs RunEA)
 {
     if (RunEA.Error != null)
     {
         MessageForm.Show(RunEA.Error.Message, Properties.Resources.securityCenter);
     }
     else if (RunEA.Cancelled == false)
     {
         mStaffList = (GetStaffList)RunEA.Result;
     }
     mWaitingForm.CloseForm();
     mWaitingForm = null;
 }
Example #3
0
 internal void LoadStaff()
 {
     mStaffList = new GetStaffList(Configuration.operatorID, true);
     mStaffList.Send(); //we have got all staff datas
     Configuration.StaffLoginNumber = mStaffList.GetLoginNumberByStaffID(Configuration.LoginStaffID);
 }