// Load datbase to view without change in category and brand private void onLoad() { importTBBindingSource.DataSource = ImportBUS.getAll(); productBindingSource.DataSource = ProductBUS.getAll(); importBindingSource.DataSource = new Import(); dgvImport.ClearSelection(); }
// Load database to view private void initLoad() { importTBBindingSource.DataSource = ImportBUS.getAll(); importBindingSource.DataSource = new Import(); categoryBindingSource.DataSource = CategoryBUS.getAll(); brandBindingSource.DataSource = BrandBUS.getAll(); productBindingSource.DataSource = ProductBUS.getAll(); dgvImport.ClearSelection(); }