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; }
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; }
internal void LoadStaff() { mStaffList = new GetStaffList(Configuration.operatorID, true); mStaffList.Send(); //we have got all staff datas Configuration.StaffLoginNumber = mStaffList.GetLoginNumberByStaffID(Configuration.LoginStaffID); }