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

            if (!string.IsNullOrEmpty(setting.Command))
                this.Command = setting.Command;
            
            this.Target = setting.Target;
            this.TargetId = setting.TargetId;

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

            if (!string.IsNullOrEmpty(setting.Command))
            {
                this.Command = setting.Command;
            }

            this.Target   = setting.Target;
            this.TargetId = setting.TargetId;

            if (!string.IsNullOrEmpty(setting.HelpMessage))
            {
                this.HelpMessage = setting.HelpMessage;
            }
        }