private void BindTime()
        {
            TripController tripController = new TripController();
            TripCollection tripCollection = tripController.SelectTime(this.cboTrip.SelectedValue.ToString(), Convert.ToDateTime(this.cboDate.SelectedValue.ToString()));

            TripInfo tripInfo = new TripInfo();

            tripInfo.Time   = "-Select One-";
            tripInfo.TimeID = null;
            tripCollection.Insert(0, tripInfo);

            this.cboTime.DisplayMember = "Time";
            this.cboTime.ValueMember   = "TimeID";
            this.cboTime.DataSource    = tripCollection;
            this.cboTime.SelectedIndex = 0;
        }
        private void BindTripID()
        {
            TripController tripController = new TripController();
            TripCollection tripCollection = tripController.SelectList();

            TripInfo tripInfo = new TripInfo();

            tripInfo.TripCode = " - Select One - ";
            tripInfo.TripID   = null;
            tripCollection.Insert(0, tripInfo);

            this.cboTrip.DisplayMember = "TripCode";
            this.cboTrip.ValueMember   = "TripID";
            this.cboTrip.DataSource    = tripCollection;
            this.cboTrip.SelectedIndex = 0;
        }
        private void BindToTripCode()
        {
            TripController tripController = new TripController();
            TripCollection tripCollection = tripController.SelectListRecord();

            TripInfo info = new TripInfo();

            info.TripCode = " - Select One - ";
            info.TripID   = null;
            tripCollection.Insert(0, info);

            cboToTripCode.DisplayMember = "TripCode";
            cboToTripCode.ValueMember   = "TripID";
            cboToTripCode.DataSource    = tripCollection;

            cboToTripCode.SelectedIndex = 0;
        }