private void fAddProduct_Load(object sender, EventArgs e)
        {
            ProductTypeService productTypeService = new ProductTypeService(new CoffeShopContext());

            cbbProductType.Properties.Items.AddRange(productTypeService.GetAllName());


            UnitService unitService = new UnitService(new CoffeShopContext());

            cbbUnit.Properties.Items.AddRange(unitService.GetAllName());
        }
        public void loadData()
        {
            btnDelete.Enabled = false;
            ProductTypeService productTypeService = new ProductTypeService(new CoffeShopContext());
            UnitService        unitService        = new UnitService(new CoffeShopContext());
            ProductService     productService     = new ProductService(new CoffeShopContext());

            gridControl1.DataSource = productService.GetAllProduct();
            // AreaService areaService = new AreaService(new CoffeShopContext());

            RepositoryItemComboBox productType = new RepositoryItemComboBox();


            productType.Items.AddRange(productTypeService.GetAllName());
            gridControl1.RepositoryItems.Add(productType);
            gridView1.Columns[4].ColumnEdit = productType;

            RepositoryItemComboBox unit = new RepositoryItemComboBox();

            unit.Items.AddRange(unitService.GetAllName());
            gridControl1.RepositoryItems.Add(unit);
            gridView1.Columns[5].ColumnEdit = unit;
            btnDelete.Enabled = false;
        }