Exemple #1
0
        /// <summary>
        /// Applies the setting.
        /// </summary>
        /// <param name="setting">The setting.</param>
        public void ApplySetting(HourControlSettings 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.MessagePerClient))
                this.MessagePerClient = setting.MessagePerClient;
        }
Exemple #2
0
        /// <summary>
        /// Applies the setting.
        /// </summary>
        /// <param name="setting">The setting.</param>
        public void ApplySetting(HourControlSettings 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.MessagePerClient))
            {
                this.MessagePerClient = setting.MessagePerClient;
            }
        }