Ejemplo n.º 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;
        }
Ejemplo n.º 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);
        }
Ejemplo n.º 4
0
 private void rboxMark_GetList(object sender, ReferenceBox.ReferenceBoxEventArgs e)
 {
     e.ItemList = VehicleMark.LoadList(Database);
 }
Ejemplo n.º 5
0
 protected override object LoadList()
 {
     return(new BindingList <VehicleMark>(VehicleMark.LoadList(Database)));
 }
 private object GetData()
 {
     return(new BindingList <VehicleMark>(VehicleMark.LoadList(Database)));
 }