public override void Refresh() { try { this.Cursor = Cursors.WaitCursor; reportStatus(new StatusEventArgs("Refreshing Client Inbound Schedule...")); this.mGridSvc.CaptureState(); this.mSchedule.Clear(); switch (this.cboSchedule.SelectedItem.ToString()) { case "Today": this.mSchedule.Merge(FreightGateway.ViewClientInboundSchedule()); break; case "Yesterday": this.mSchedule.Merge(FreightGateway.ViewClientInboundScheduleYesterday()); break; case "Advanced": this.mSchedule.Merge(FreightGateway.ViewClientInboundScheduleAdvanced()); break; case "Archive": this.mSchedule.Merge(FreightGateway.ViewClientInboundScheduleArchive()); break; } this.mGridSvc.RestoreState(); this.mGridTSvc.CaptureState(); this.mTemplates.Clear(); this.mTemplates.Merge(FreightGateway.ViewClientInboundScheduleTemplates()); this.mGridTSvc.RestoreState(); base.Refresh(); } catch (Exception ex) { App.ReportError(ex, true, LogLevel.Error); } finally { setUserServices(); this.Cursor = Cursors.Default; } }