Пример #1
0
 private void btnsave_Click(object sender, EventArgs e)
 {
     if (this.txt_bank_code.Text == string.Empty || this.txt_bank_name.Text == string.Empty)
     {
         MessageBox.Show("Bank name & code are required fields", "Accounts info", MessageBoxButtons.OK, MessageBoxIcon.Exclamation);
         return;
     }
     Salary_scales.save_update_bank_details("save_update_bank_details", this.txt_bank_code.Text, this.txt_bank_name.Text, (this.chk_active.Checked ? true : false));
     MessageBox.Show("Success", "Accounts info", MessageBoxButtons.OK, MessageBoxIcon.Asterisk);
     this.get_bank_list();
 }