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

            this.ServerGroup = setting.ServerGroup;
            if (!string.IsNullOrEmpty(setting.TextMessage))
                this.TextMessage = setting.TextMessage;
            if (!string.IsNullOrEmpty(setting.MessagePerClient))
                this.MessagePerClient = setting.MessagePerClient;
        }
Ejemplo n.º 2
0
        /// <summary>
        /// Applies the setting.
        /// </summary>
        /// <param name="setting">The setting.</param>
        public void ApplySetting(SeenModeratorControlSettings setting)
        {
            base.ApplySetting(setting);

            this.ServerGroup = setting.ServerGroup;
            if (!string.IsNullOrEmpty(setting.TextMessage))
            {
                this.TextMessage = setting.TextMessage;
            }
            if (!string.IsNullOrEmpty(setting.MessagePerClient))
            {
                this.MessagePerClient = setting.MessagePerClient;
            }
        }