Exemple #1
0
 /// <summary>
 /// Creates a new instance of Builder.
 /// </summary>
 /// <param name="geometry">The shape of the visual element</param>
 public Builder(Geometry geometry)
 {
     Preconditions.IsNotNull(geometry, "Visual geometry property cannot be set to null");
     this.geometry = geometry;
 }
Exemple #2
0
 protected bool Equals(Visual other)
 {
     return(Origin.Equals(other.Origin) && Geometry.Equals(other.Geometry) &&
            (Material != null ? Material.Equals(other.Material) : other.Material == null));
 }