Esempio n. 1
0
        private new void Update()
        {
            DB_Storage = new DB_Storage();
            comboxEngineCapacity.DataSource = DB_Storage.GetCapacity();
            comboxDoors.DataSource          = DB_Storage.GetDoors();
            comboxSeats.DataSource          = DB_Storage.GetSeats();
            comboxModel.DataSource          = DB_Storage.Models;
            comboxCarcase.DataSource        = DB_Storage.Carcases;
            comboxCountry.DataSource        = DB_Storage.Countries;
            comboxBrand.DataSource          = DB_Storage.Brands;
            comboxTypeEngine.DataSource     = DB_Storage.Engine_types;
            comBoxPlace.DataSource          = DB_Storage.Engine_places;
            addModelBrand.DataSource        = DB_Storage.Brands;
            comboxPayType.DataSource        = DB_Storage.Payment_types;
            comBoxCities.DataSource         = DB_Storage.Cities;
            comBoxClients.DataSource        = DB_Storage.Clients;


            //BrandSaleSelect.DataSource = DB_Storage.Brands;
            TotalSumGridView.DataSource = DB_Sale_Query.GetTotalSum("");
            productsView.DataSource     = DB_Product_Query.GetAllProducts();
        }
Esempio n. 2
0
        private void ViewProducts_Click(object sender, EventArgs e)
        {
            productsView.DataSource = DB_Product_Query.GetAllProducts();

            GridAutoSize(productsView);
        }