Example #1
0
        /// <summary>
        /// Applies the setting.
        /// </summary>
        /// <param name="setting">The setting.</param>
        public void ApplySetting(ControlSettings setting)
        {
            if (!string.IsNullOrEmpty(setting.HelpMessage))
            {
                this.HelpMessage = setting.HelpMessage;
            }

            Help.ApplySetting(setting.Help);
            Seen.ApplySetting(setting.Seen);
            Files.ApplySetting(setting.Files);
            Stick.ApplySetting(setting.Stick);
            SeenGroup.ApplySetting(setting.SeenGroup);
            SeenModerator.ApplySetting(setting.SeenModerator);
            Moderator.ApplySetting(setting.Moderator);
            Hours.ApplySetting(setting.Hours);
            Punish.ApplySetting(setting.Punish);
            SelfGroup.ApplySetting(setting.SelfGroup);
        }