コード例 #1
0
        /// <summary>
        /// Applies the setting.
        /// </summary>
        /// <param name="setting">The setting.</param>
        public void ApplySetting(ModeratorControlSettings setting)
        {
            base.ApplySetting(setting);

            if (setting.Limit > 0) this.Limit = setting.Limit;
            if (!string.IsNullOrEmpty(setting.TextMessage))
                this.TextMessage = setting.TextMessage;
            if (!string.IsNullOrEmpty(setting.MessagePerModerator))
                this.MessagePerModerator = setting.MessagePerModerator;
        }
コード例 #2
0
        /// <summary>
        /// Applies the setting.
        /// </summary>
        /// <param name="setting">The setting.</param>
        public void ApplySetting(ModeratorControlSettings setting)
        {
            base.ApplySetting(setting);

            if (setting.Limit > 0)
            {
                this.Limit = setting.Limit;
            }
            if (!string.IsNullOrEmpty(setting.TextMessage))
            {
                this.TextMessage = setting.TextMessage;
            }
            if (!string.IsNullOrEmpty(setting.MessagePerModerator))
            {
                this.MessagePerModerator = setting.MessagePerModerator;
            }
        }