Esempio n. 1
0
 private void cmbCashOrBank_KeyDown(object sender, KeyEventArgs e)
 {
     if (e.KeyCode == Keys.Enter)
     {
         CmbAccountLedger.Focus();
     }
 }
Esempio n. 2
0
 private void txtReceiptNo_KeyDown(object sender, KeyEventArgs e)
 {
     if (e.KeyCode == Keys.Enter)
     {
         CmbAccountLedger.Focus();
     }
 }
Esempio n. 3
0
 public void Clear()
 {
     txtReceiptNo.ResetText();
     CmbAccountLedger.SelectedIndex = -1;
     txtAmount.Text = "0";
     txtNarration.ResetText();
     txtDate.ResetText();
     CmbAccountLedger.Select();
     btn_Save.Enabled   = true;
     btnUpdate.Enabled  = false;
     btn_Delete.Enabled = false;
 }
Esempio n. 4
0
 private bool check()
 {
     if (_objValidation.IsNotEmpty(txtReceiptNo.Text))
     {
         if (CmbAccountLedger.SelectedValue != null)
         {
             return(true);
         }
         else
         {
             MessageBox.Show("Please Select Account Ledger First...!");
             CmbAccountLedger.Select();
             return(false);
         }
     }
     else
     {
         MessageBox.Show("Receipt No Can`t Be Blank...!"); return(false);
     }
 }