Exemple #1
0
 public override void Refresh()
 {
     try {
         this.Cursor = Cursors.WaitCursor;
         reportStatus(new StatusEventArgs("Refreshing shipments..."));
         string clientNumber = this.cboClient.SelectedValue.ToString();
         this.mShipments.Clear();
         this.mShipments.Merge(FreightGateway.ViewLTLShipments(clientNumber));
         this.grdShipments.Focus();
         base.Refresh();
     }
     catch (Exception ex) { App.ReportError(ex, true, LogLevel.Error); }
     finally { setUserServices(); this.Cursor = Cursors.Default; }
 }
Exemple #2
0
 private void OnAutoRefresh(object sender, DoWorkEventArgs e)
 {
     //Event handler for background worker thread DoWork event; runs on worker thread
     try { e.Result = FreightGateway.ViewLTLShipments(this.mClientNumber); }
     catch { }
 }