private void frmProductPriceNew_Load(object sender, EventArgs e) { DAL.Product p = new DAL.Product(); DAL.Unit u = new DAL.Unit(); cmbProduct.Source(p.Select()); cmbUnit.Source(u.Select()); MyControls.Helper.Numeric(txtPrice); }
private void btnSearch_Click(object sender, EventArgs e) { DAL.Unit unit = new DAL.Unit(); dgvUnit.DataSource = unit.Select().Tables[0]; }