}//----------------------------- //####################################END BUTTON btnSearchAdditionalFee EVENTS#################################### //####################################BUTTON btnUpdateAdditionalPayment EVENTS#################################### //event is raised when the the control is clicked private void btnUpdateAdditionalPaymentClick(object sender, EventArgs e) { try { if (this.ValidateControls()) { String strMsg = "Are you sure you want to update the student additional payment?"; DialogResult msgResult = MessageBox.Show(strMsg, "Confirm Update", MessageBoxButtons.YesNo, MessageBoxIcon.Question, MessageBoxDefaultButton.Button1); if (msgResult == DialogResult.Yes) { strMsg = "The student additional payment has been successfully updated."; this.Cursor = Cursors.WaitCursor; _cashieringManager.UpdateStudentAdditionalFee(_userInfo, _studentAdditionalFeeInfo, true); this.Cursor = Cursors.Arrow; MessageBox.Show(strMsg, "Success", MessageBoxButtons.OK, MessageBoxIcon.Asterisk); _hasUpDated = true; _hasUpdatedForClosing = true; this.Close(); } } } catch (Exception ex) { RemoteClient.ProcStatic.ShowErrorDialog(ex.Message, "Error Recording"); } }//----------------------------