Esempio n. 1
0
        /// <summary>
        /// Applies the setting.
        /// </summary>
        /// <param name="setting">The setting.</param>
        public void ApplySetting(FilesControlSettings setting)
        {
            base.ApplySetting(setting);

            if (!string.IsNullOrEmpty(setting.MessagePerServer))
                this.MessagePerServer = setting.MessagePerServer;
            if (!string.IsNullOrEmpty(setting.MessageNoFilesFound))
                this.MessageNoFilesFound = setting.MessageNoFilesFound;
            if (!string.IsNullOrEmpty(setting.MessageFilesFound))
                this.MessageFilesFound = setting.MessageFilesFound;
            if (!string.IsNullOrEmpty(setting.MessageFile))
                this.MessageFile = setting.MessageFile;
        }
Esempio n. 2
0
        /// <summary>
        /// Applies the setting.
        /// </summary>
        /// <param name="setting">The setting.</param>
        public void ApplySetting(FilesControlSettings setting)
        {
            base.ApplySetting(setting);

            if (!string.IsNullOrEmpty(setting.MessagePerServer))
            {
                this.MessagePerServer = setting.MessagePerServer;
            }
            if (!string.IsNullOrEmpty(setting.MessageNoFilesFound))
            {
                this.MessageNoFilesFound = setting.MessageNoFilesFound;
            }
            if (!string.IsNullOrEmpty(setting.MessageFilesFound))
            {
                this.MessageFilesFound = setting.MessageFilesFound;
            }
            if (!string.IsNullOrEmpty(setting.MessageFile))
            {
                this.MessageFile = setting.MessageFile;
            }
        }