Example #1
0
        private void LoadMarkList()
        {
            markList = new BindingList <VehicleMark>(VehicleMark.LoadList(Database));
            AutoCompleteStringCollection stringCollection = new AutoCompleteStringCollection();

            foreach (VehicleMark mark in markList)
            {
                stringCollection.Add(mark.ToString());
            }
            tboxVehicleMark.AutoCompleteCustomSource = stringCollection;
        }
Example #2
0
        private void FillMarkAutoCompleteList()
        {
            AutoCompleteStringCollection list = new AutoCompleteStringCollection();

            markList = VehicleMark.LoadList(Database);

            foreach (VehicleMark mark in markList)
            {
                list.Add(mark.ToString());
            }

            tboxVehicleMark.AutoCompleteCustomSource = list;
        }
        private void PreloadData()
        {
            rboxCargo.DataSource        = new Cargos(Database);
            MarkList                    = VehicleMark.LoadList(Database);
            rboxLicensePlate.DataSource = Vehicle.LoadList(Database, VehicleMark.Empty, "");

            rboxCargo.NullValue        = Cargo.Empty;
            rboxVehicleMark.NullValue  = VehicleMark.Empty;
            rboxLicensePlate.NullValue = Vehicle.Empty;

            cboxCountry.DataSource = new States(Database);
            cboxUnit.DataSource    = new Units(Database);
        }
Example #4
0
 private void rboxMark_GetList(object sender, ReferenceBox.ReferenceBoxEventArgs e)
 {
     e.ItemList = VehicleMark.LoadList(Database);
 }
 protected override object LoadList()
 {
     return(new BindingList <VehicleMark>(VehicleMark.LoadList(Database)));
 }
 private object GetData()
 {
     return(new BindingList <VehicleMark>(VehicleMark.LoadList(Database)));
 }