/// <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();
        }
示例#2
0
        /// <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());
            }
        }