Ejemplo n.º 1
0
        public override void Refresh()
        {
            try {
                this.Cursor = Cursors.WaitCursor;
                reportStatus(new StatusEventArgs("Refreshing Trailer Log..."));
                this.mGridSvc.CaptureState();
                this.mSchedule.Clear();
                switch (this.cboSchedule.SelectedItem.ToString())
                {
                case "Yard Check": this.mSchedule.Merge(FreightGateway.ViewTrailerLog()); break;

                case "Archive": this.mSchedule.Merge(FreightGateway.ViewTrailerLogArchive()); break;
                }
                this.mGridSvc.RestoreState();
                base.Refresh();
            }
            catch (Exception ex) { App.ReportError(ex, true, LogLevel.Error); }
            finally { setUserServices(); this.Cursor = Cursors.Default; }
        }