Esempio n. 1
0
        private void BindBusCode()
        {
            BusController busController  = new BusController();
            BusCollection busCollections = busController.SelectList();

            BusInfo info = new BusInfo();

            info.BusCode = " - Select One - ";
            info.BusID   = null;
            busCollections.Insert(0, info);

            this.cboBusCode.DisplayMember = "BusCode";
            this.cboBusCode.ValueMember   = "BusID";
            this.cboBusCode.DataSource    = busCollections;
        }
Esempio n. 2
0
        private void BindBusNo()
        {
            BusController busController  = new BusController();
            BusCollection BusCollections = busController.SelectList();

            BusInfo info = new BusInfo();

            info.BusNo = " - Select One - ";
            info.BusID = null;
            BusCollections.Insert(0, info);

            this.cboBusNumber.DisplayMember = "BusNo";
            this.cboBusNumber.ValueMember   = "BusID";
            this.cboBusNumber.DataSource    = BusCollections;
            this.cboBusNumber.SelectedIndex = 0;
        }
        private void BindBus()
        {
            BusController busController = new BusController();
            BusCollection busCollection = busController.SelectList();

            BusInfo info = new BusInfo();

            info.BusNo = " - Select One - ";
            info.BusID = null;
            busCollection.Insert(0, info);

            cboBusNo.DisplayMember = "BusNo";
            cboBusNo.ValueMember   = "BusID";
            cboBusNo.DataSource    = busCollection;

            cboBusNo.SelectedIndex = 0;
        }