Example #1
0
 private void lst_PartNumber_Leave(object sender, EventArgs e)
 {
     if (lst_PartNumber.SelectedIndex < 0)
     {
         string        newProduct  = lst_PartNumber.Text.ToUpper();
         frmAddProduct ProductForm = new frmAddProduct();
         ProductForm.Product = lst_PartNumber.Text;
         ProductForm.ShowDialog();
         lst_PartNumber.Text = newProduct;
     }
 }
Example #2
0
 private void cboProduct_Leave(object sender, EventArgs e)
 {
     if (cboProduct.SelectedIndex < 0)
     {
         string        newProduct  = cboProduct.Text.ToUpper();
         frmAddProduct ProductForm = new frmAddProduct();
         ProductForm.Product = cboProduct.Text;
         ProductForm.ShowDialog();
         FormControlOps.populateListItems <ProductModel>(cboProduct, "tblProducts", "Product");
         cboProduct.Text = newProduct;
     }
 }