Exemplo n.º 1
0
        public TextStyleSet(TextStyleSet source)
        {
            Assert.IsNotNull(source);

            _normal      = source.Normal;
            _disabled    = source.Disabled;
            _highlighted = source.Highlighted;
            _active      = source.Active;
        }
Exemplo n.º 2
0
 public TextStyleSet Merge(TextStyleSet other)
 {
     return(other == null
         ? this
         : new TextStyleSet(
                Normal.Merge(other.Normal),
                Disabled.Merge(other.Disabled),
                Highlighted.Merge(other.Highlighted),
                Active.Merge(other.Active)));
 }
Exemplo n.º 3
0
 protected bool Equals(TextStyleSet other)
 {
     return(Equals(_normal, other._normal) && Equals(_disabled, other._disabled) &&
            Equals(_highlighted, other._highlighted) && Equals(_active, other._active));
 }