private void WorkerEpayment_DoWork(object sender, DoWorkEventArgs e) { // Executes when RunWorkerAsync() is called List<object> dataReceived = new BankAccountData().GetEmployeePaymentHistory();//change for other all e.Result = dataReceived; }
private void WorkerBankAccount_DoWork(object sender, DoWorkEventArgs e) { // Executes when RunWorkerAsync() is called List<BankAccount> dataReceived = new BankAccountData().GetBankAccountInformation();//change for other all e.Result = dataReceived; }