/// <summary> /// Saves the synchronization interval to the configuration file. /// </summary> /// <param name="form">The Synchronization form.</param> /// <param name="args">The <see cref="System.EventArgs"/> instance containing the event data.</param> public static void btnSave_OnClickStep(ISynchronization form, EventArgs args) { IAppIdMapping appIdMapping = form.CurrentEntity as IAppIdMapping; int syncInterval = Convert.ToInt32(form.txtInterval.Text); appIdMapping.SaveSyncConfiguration(syncInterval); appIdMapping.Save(); }
/// <summary> /// Saves the synchronization interval to the configuration file. /// </summary> /// <param name="form">The Synchronization form.</param> /// <param name="args">The <see cref="System.EventArgs"/> instance containing the event data.</param> public static void btnSave_OnClickStep(ISynchronization form, EventArgs args) { IAppIdMapping appIdMapping = form.CurrentEntity as IAppIdMapping; try { int syncInterval = Convert.ToInt32(form.txtInterval.Text); appIdMapping.SaveSyncConfiguration(syncInterval); } catch (FormatException) { throw new ValidationException(form.GetResource("Error_Invalid_Number").ToString()); } }