private void OnFormLoad(object sender, System.EventArgs e) { //Event handler for form load event this.Cursor = Cursors.WaitCursor; try { this.cboSortCenter.DisplayMember = "TerminalTable.Description"; this.cboSortCenter.ValueMember = "TerminalTable.ID"; this.cboSortCenter.DataSource = EnterpriseFactory.GetTerminals(global::Argix.Properties.ArgixSettings.Default.IsShipperSchedule); if (this.cboSortCenter.Items.Count > 0) { this.cboSortCenter.SelectedIndex = 0; } this.calDate.MinDate = System.DateTime.Today; OnValidateForm(null, null); } catch (Exception ex) { App.ReportError(ex, true, LogLevel.Error); } finally { this.Cursor = Cursors.Default; } }