Example #1
0
        /// <summary>
        /// Combines this instance with reference parameter.
        /// </summary>
        public void Combine(BorderModel reference)
        {
            if (Color.Equals(DefaultColor))
            {
                Color = reference.Color;
            }

            if (LineStyle.Equals(DefaultLineStyle))
            {
                LineStyle = reference.LineStyle;
            }

            if (Weight.Equals(DefaultWidthLineStyle))
            {
                Weight = reference.Weight;
            }
        }
Example #2
0
        protected override void SetOwner(BorderModel item)
        {
            SentinelHelper.ArgumentNull(item);

            item.SetOwner(this);
        }