Exemple #1
0
        public ImageAndColorSet(ImageAndColorSet source)
        {
            Assert.IsNotNull(source);

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