Exemplo n.º 1
0
        internal void AddVariable(StyleVariable variable)
        {
            if (null == this._variables)
            {
                _variables = new StyleVariableSet();
            }

            _variables.Add(variable ?? throw new ArgumentNullException(nameof(variable)));
        }
Exemplo n.º 2
0
        //
        // variables
        //

        public bool AddVariable(string name, string value)
        {
            if (null == this._variables)
            {
                _variables = new StyleVariableSet();
            }
            _variables.Add(new StyleVariable(name, value));

            return(true);
        }
Exemplo n.º 3
0
 /// <summary>
 /// Creates a new Chained variable provider
 /// </summary>
 /// <param name="vars"></param>
 /// <param name="next"></param>
 public StyleChainedVariableProvider(StyleVariableSet vars, IVariableProvider next)
 {
     this._variables = vars ?? throw new ArgumentNullException(nameof(vars));
     this._next      = next;
 }