コード例 #1
0
ファイル: Form1.cs プロジェクト: DmitGR/DateBaseProject
        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();
        }
コード例 #2
0
ファイル: Form1.cs プロジェクト: DmitGR/DateBaseProject
 private void BrandSumSearch_TextChanged(object sender, EventArgs e)
 {
     TotalSumGridView.DataSource = DB_Sale_Query.GetTotalSum(BrandSumSearch.Text);
 }
コード例 #3
0
ファイル: Form1.cs プロジェクト: DmitGR/DateBaseProject
        private void tabTotalSum_Click(object sender, EventArgs e)
        {
            TotalSumGridView.DataSource = DB_Sale_Query.GetTotalSum("");

            GridAutoSize(TotalSumGridView);
        }