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; }
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); } }