Пример #1
0
 private void txtLoanDeduction_TextChanged(object sender, EventArgs e)
 {
     if (txtLoanDeduction.Text == "")
     {
         txtLoanDeduction.Text = "0";
         txtLoanDeduction.SelectAll();
     }
     ControlValidation.CheckNumericValueOnly1(txtLoanDeduction);
 }
Пример #2
0
 private void txtSpcIncentive_TextChanged(object sender, EventArgs e)
 {
     if (txtSpcIncentive.Text == "")
     {
         txtSpcIncentive.Text = "0";
         txtSpcIncentive.SelectAll();
     }
     ControlValidation.CheckNumericValueOnly1(txtSpcIncentive);
 }
Пример #3
0
 private void txtESICPer_TextChanged(object sender, EventArgs e)
 {
     if (txtpfPer.Text == "")
     {
         txtpfPer.Text = "0";
         txtpfPer.SelectAll();
     }
     if (ControlValidation.CheckNumericValueOnly1(txtpfPer))
     {
         calculateDA();
     }
 }
Пример #4
0
 private void txtda_TextChanged(object sender, EventArgs e)
 {
     // ControlValidation.CheckNumericValueOnly1(txtda );
     //calculateDA();
     if (txtda.Text == "")
     {
         txtda.Text = "0";
         txtda.SelectAll();
     }
     if (ControlValidation.CheckNumericValueOnly1(txtda))
     {
         calculateDA();
     }
 }
Пример #5
0
 private void txtEmpName_Leave(object sender, EventArgs e)
 {
     ControlValidation.checkEmptyTextBox(txtEmpName);
     txtEmpName.Text = myTextInfo.ToTitleCase(txtEmpName.Text);
 }
Пример #6
0
 private void txtDesignation_TextChanged(object sender, EventArgs e)
 {
     ControlValidation.checkEmptyTextBox(txtDesignation);
 }
Пример #7
0
 private void txtAllowedEL_TextChanged(object sender, EventArgs e)
 {
     ControlValidation.CheckNumericValueOnly1(txtAllowedEL);
 }
Пример #8
0
 private void txtcontactno_Validating(object sender, CancelEventArgs e)
 {
     ControlValidation.CheckMobileNumber(txtcontactno, e);
 }
Пример #9
0
 private void txtFatherName_Validating(object sender, CancelEventArgs e)
 {
     ControlValidation.CheckalphasOnly(txtFatherName, e);
     txtFatherName.Text = myTextInfo.ToTitleCase(txtFatherName.Text);
 }
Пример #10
0
 private void txtEmpName_Validating(object sender, CancelEventArgs e)
 {
     ControlValidation.checkEmptyTextBox(txtEmpName);
 }
Пример #11
0
 private void Txtrollno_Validating(object sender, CancelEventArgs e)
 {
     ControlValidation.CheckNumericValueOnly(txtrollno, e);
 }