Esempio n. 1
0
 private void frmProductNew_Load(object sender, EventArgs e)
 {
     DAL.Brand    b = new DAL.Brand();
     DAL.Category c = new DAL.Category();
     cmbBrand.Source(b.Select());
     cmbCategory.Source(c.Select());
     MyControls.Helper.Numeric(txtDiscount);
 }
Esempio n. 2
0
 private void frmProduct_Load(object sender, EventArgs e)
 {
     DAL.Brand b = new DAL.Brand();
     cmbBrand.DataSource    = b.Select().Tables[0];
     cmbBrand.DisplayMember = "name";
     cmbBrand.ValueMember   = "id";
     cmbBrand.SelectedValue = -1;
     DAL.Category c = new DAL.Category();
     cmbCategory.DataSource    = c.Select().Tables[0];
     cmbCategory.DisplayMember = "name";
     cmbCategory.ValueMember   = "id";
     cmbCategory.SelectedValue = -1;
 }
Esempio n. 3
0
 private void btnSearch_Click(object sender, EventArgs e)
 {
     DAL.Brand brand = new DAL.Brand();
     dgvData.DataSource = brand.Select().Tables[0];
 }