/// <summary>
        /// Applies the setting.
        /// </summary>
        /// <param name="setting">The setting.</param>
        public void ApplySetting(StickControlSettings setting)
        {
            base.ApplySetting(setting);

            if (!string.IsNullOrEmpty(setting.UndoCommand))
                this.UndoCommand = setting.UndoCommand;
        }
        /// <summary>
        /// Applies the setting.
        /// </summary>
        /// <param name="setting">The setting.</param>
        public void ApplySetting(StickControlSettings setting)
        {
            base.ApplySetting(setting);

            if (!string.IsNullOrEmpty(setting.UndoCommand))
            {
                this.UndoCommand = setting.UndoCommand;
            }
        }
Example #3
0
 /// <summary>
 /// Initializes a new instance of the <see cref="ControlSettings"/> class.
 /// </summary>
 public ControlSettings()
 {
     Help          = new HelpControlSettings();
     Seen          = new SeenControlSettings();
     Files         = new FilesControlSettings();
     Stick         = new StickControlSettings();
     SeenGroup     = new SeenGroupControlSettings();
     SeenModerator = new SeenModeratorControlSettings();
     Moderator     = new ModeratorControlSettings();
     Hours         = new HourControlSettings();
     Punish        = new PunishControlSettings();
     SelfGroup     = new SelfGroupControlSettings();
 }
 /// <summary>
 /// Initializes a new instance of the <see cref="ControlSettings"/> class.
 /// </summary>
 public ControlSettings()
 {
     Help = new HelpControlSettings();
     Seen = new SeenControlSettings();
     Files = new FilesControlSettings();
     Stick = new StickControlSettings();
     SeenGroup = new SeenGroupControlSettings();
     SeenModerator = new SeenModeratorControlSettings();
     Moderator = new ModeratorControlSettings();
     Hours = new HourControlSettings();
     Punish = new PunishControlSettings();
     SelfGroup = new SelfGroupControlSettings();
 }