Beispiel #1
0
        private void loadInventory()
        {
            cmbInventory.Items.Clear();

            List <clsInventory> list = new List <clsInventory>();

            clsInventory inventoryClass = new clsInventory();

            list = inventoryClass.getList();

            foreach (clsInventory oInventory in list)
            {
                clsComboboxItem oItem = new clsComboboxItem();
                oItem.Text  = "[" + oInventory.TrackingCode + "] " + oInventory.Car.Name;
                oItem.Value = oInventory;

                cmbInventory.Items.Add(oItem);
            }
        }
Beispiel #2
0
        private void loadCarModel()
        {
            cmbCarModel.Items.Clear();

            List <clsCar> carList = new List <clsCar>();

            clsCar carClass = new clsCar();

            carList = carClass.GetCarList();

            foreach (clsCar oCar in carList)
            {
                clsComboboxItem oItem = new clsComboboxItem();
                oItem.Text  = oCar.Name;
                oItem.Value = oCar;

                cmbCarModel.Items.Add(oItem);
            }
        }