Exemplo n.º 1
28
        private void WorkerPayroll_DoWork(object sender, DoWorkEventArgs e)
        {
            // Executes when RunWorkerAsync() is called

            List<Payroll> dataReceived = new PayrollData().GetAllPayrollList(); //change for other all
            e.Result = dataReceived;


        }
Exemplo n.º 2
0
        private void Workerpayroll_DoWork(object sender, DoWorkEventArgs e)
        {


            List<Payroll> dataReceived = new PayrollData().GetAllPayrollListEmployee(n.employeeId);
            e.Result = dataReceived;


        }