Beispiel #1
0
 /// <summary>
 /// Function to fill brand combobox
 /// </summary>
 public void BrandComboFill()
 {
     try
     {
         dtbl = TrGeneralFill.BrandViewAll(cmbBrand, true);
     }
     catch (Exception ex)
     {
         MessageBox.Show("PR5:" + ex.Message, "OpenMiracle", MessageBoxButtons.OK, MessageBoxIcon.Information);
     }
 }
Beispiel #2
0
 /// <summary>
 /// Function to fill Brand Combobox
 /// </summary>
 public void BrandComboFill()
 {
     try
     {
         DataTable dtbl = TransactionsGeneralFillObj.BrandViewAll(cmbBrand, true);
         cmbBrand.DataSource    = dtbl;
         cmbBrand.DisplayMember = "brandName";
         cmbBrand.ValueMember   = "brandId";
     }
     catch (Exception ex)
     {
         MessageBox.Show("PS:04" + ex.Message, "OpenMiracle", MessageBoxButtons.OK, MessageBoxIcon.Information);
     }
 }