Beispiel #1
0
 // Load database to view
 private void initLoad()
 {
     productTBBindingSource.DataSource = ProductBUS.getAll();
     categoryBindingSource.DataSource  = CategoryBUS.getAll();
     brandBindingSource.DataSource     = BrandBUS.getAll();
     productBindingSource.DataSource   = new Product();
     dgvProduct.ClearSelection();
 }
Beispiel #2
0
        //Open brand form
        private void btnAddBrand_Click(object sender, EventArgs e)
        {
            frmBrand _frmBrand = new frmBrand();

            if (_frmBrand.ShowDialog() == DialogResult.Cancel)
            {
                brandBindingSource.DataSource = BrandBUS.getAll();
            }
        }
Beispiel #3
0
 private void btnUpdate_Click(object sender, EventArgs e)
 {
     BrandBUS.update(brandBindingSource.Current as Brand);
     brandTBBindingSource.DataSource = BrandBUS.getAll();
     brandBindingSource.DataSource   = new Brand();
 }
Beispiel #4
0
 private void frmBrand_Load(object sender, EventArgs e)
 {
     brandTBBindingSource.DataSource = BrandBUS.getAll();
     brandBindingSource.DataSource   = new Brand();
 }