示例#1
0
        public void loadComboBoxModelsByBrandsAndCategory(ComboBox combo, string Category, string Brand, bool sort = true)
        {
            if (!sort)
            {
                combo.DataSource = sql.getModelByCategoryAndBrand(Category, Brand);
            }
            else
            {
                tmp = sql.getModelByCategoryAndBrand(Category, Brand);

                tmp.Sort();

                combo.DataSource = tmp;
            }
        }