Exemplo n.º 1
0
 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    = ShipScheduleGateway.GetSortCenters();
         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; }
 }