private void OnRunWorkerCompleted(object sender, RunWorkerCompletedEventArgs e) { //Back to the main thread with the result try { Argix.Terminals.Customers2 customers = (Argix.Terminals.Customers2)e.Result; } catch { } }
private void OnLoadShippers(object sender, DoWorkEventArgs e) { //Load shippers on a background thread; return data in e.Result object try { Argix.Terminals.Customers2 customers = Argix.Terminals.TerminalGateway.GetCustomers2(null); e.Result = customers; } catch { } }