Example #1
0
        public TextStyleSet(TextStyleSet source)
        {
            Assert.IsNotNull(source);

            _normal      = source.Normal;
            _disabled    = source.Disabled;
            _highlighted = source.Highlighted;
            _active      = source.Active;
        }
Example #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)));
 }
Example #3
0
 protected bool Equals(TextStyleSet other)
 {
     return(Equals(_normal, other._normal) && Equals(_disabled, other._disabled) &&
            Equals(_highlighted, other._highlighted) && Equals(_active, other._active));
 }