/// <summary>
 /// Encrypts the accounting systems end point password.
 /// </summary>
 /// <param name="form">The Accounting System details form.</param>
 /// <param name="args">The <see cref="System.EventArgs"/> instance containing the event data.</param>
 public static void cmdOK_OnClickStep(IAddEditLink form, EventArgs args)
 {
     IAppIdMapping appIdMapping = form.CurrentEntity as IAppIdMapping;
     if (appIdMapping != null) {
         appIdMapping.EncryptAccountingSystemPassword(form.txtPassword.Text);
         appIdMapping.ValidateEndPoint();
         appIdMapping.Save();
     }
 }
        /// <summary>
        /// Encrypts the accounting systems end point password.
        /// </summary>
        /// <param name="form">The Accounting System details form.</param>
        /// <param name="args">The <see cref="System.EventArgs"/> instance containing the event data.</param>
        public static void cmdOK_OnClickStep(IAddEditLink form, EventArgs args)
        {
            IAppIdMapping appIdMapping = form.CurrentEntity as IAppIdMapping;

            if (appIdMapping != null)
            {
                appIdMapping.EncryptAccountingSystemPassword(form.txtPassword.Text);
                appIdMapping.ValidateEndPoint();
                appIdMapping.Save();
            }
        }