/// <summary> /// Validates the accounting feed input can be successfully tested. /// </summary> /// <param name="form">The Add Edit Accounting System form.</param> /// <param name="args">The <see cref="System.EventArgs"/> instance containing the event data.</param> public static void btnTestFeed_OnClick(IAddEditAccountingSystem form, EventArgs args) { IAppIdMapping appIdMapping = form.CurrentEntity as IAppIdMapping; //ensure the passwod is encrypted appIdMapping.EncryptAccountingSystemPassword(form.txtPassword.Text); form.txtStatus.Text = appIdMapping.TestAccountingFeed(); }
/// <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(IAddEditAccountingSystem form, EventArgs args) { IAppIdMapping appIdMapping = form.CurrentEntity as IAppIdMapping; if (appIdMapping != null) { appIdMapping.EncryptAccountingSystemPassword(form.txtPassword.Text); } appIdMapping.Save(); }