Example #1
0
 private void cBoxSupplier_MouseDown(object sender, MouseEventArgs e)
 {
     if (e.Button == System.Windows.Forms.MouseButtons.Left)
     {
         po.supplier_name        = cBoxSupplier.Text;
         txtBoxSupplierCode.Text = po.askSupplierCode();
     }
 }
Example #2
0
 private void txtBoxSupplierName_KeyDown(object sender, KeyEventArgs e)
 {
     if (e.KeyCode == Keys.Enter)
     {
         po.supplier_name        = txtBoxSupplierName.Text;
         txtBoxSupplierCode.Text = po.askSupplierCode();
         checkifTheSame();
     }
 }