Example #1
0
 private void LoadComboBox()
 {
     orderIDs = OrderDB.GetOrderIDs();
     if (orderIDs.Count > 0) // triggers select...
     {
         orderIDComboBox.DataSource    = orderIDs;
         orderIDComboBox.SelectedIndex = 0;
     }
     else // if no customer orders
     {
         MessageBox.Show("Nothing to display, Please Restart Application", "Empty Load");
         Application.Exit();
     }
 }