Example #1
0
        public virtual void Set(string modifier)
        {
            if (string.IsNullOrEmpty(modifier))
            {
                return;
            }
            // Param.CheckNonEmptyString(modifier, "modifier");

            ModifierSelectionBlock block = ModifierBlocks.FindBlockForModifier(modifier);

            if (block == null || block.IsSet(modifier))
            {
                return;
            }

            if (this.Root != null)
            {
                IAction action = new SetModifierAction(this, modifier);
                Root.ActionManager.RecordAction(action);
            }
            else
            {
                SetCore(modifier);
            }
        }
Example #2
0
        public virtual void Set(string modifier)
        {
            if (string.IsNullOrEmpty(modifier))
            {
                return;
            }
            // Param.CheckNonEmptyString(modifier, "modifier");

            ModifierSelectionBlock block = ModifierBlocks.FindBlockForModifier(modifier);

            if (block == null || block.IsSet(modifier))
            {
                return;
            }

            if (this.Root != null)
            {
                IAction action = new SetModifierAction(this, modifier);
                Root.ActionManager.RecordAction(action);
            }
            else
            {
                SetCore(modifier);
            }
        }