示例#1
0
        private void WorkerTraining_DoWork(object sender, DoWorkEventArgs e)
        {
            // Executes when RunWorkerAsync() is called

            List<Training> dataReceived = new TrainingData().GetAllEmployeeTraining(); //change for other all
            e.Result = dataReceived;


        }
示例#2
0
        private void WorkerTraining_DoWork(object sender, DoWorkEventArgs e)
        {


            List<Training> dataReceived = new TrainingData().GetEmployeeTrainingEmployee(n.employeeId);
            e.Result = dataReceived;


        }