Esempio n. 1
0
 public static GooglePolygons CloneMe(GooglePolygons prev)
 {
     var p = new GooglePolygons();
     for (int i = 0; i < prev.Count; i++)
     {
         var gpl = new GooglePolygon();
         gpl.FillColor = prev[i].FillColor;
         gpl.FillOpacity = prev[i].FillOpacity;
         gpl.ID = prev[i].ID;
         gpl.Status = prev[i].Status;
         gpl.StrokeColor = prev[i].StrokeColor;
         gpl.StrokeOpacity = prev[i].StrokeOpacity;
         gpl.StrokeWeight = prev[i].StrokeWeight;
         gpl.Points = GooglePoints.CloneMe(prev[i].Points);
         p.Add(gpl);
     }
     return p;
 }
Esempio n. 2
0
 private void Add(GooglePolygon pPolygon)
 {
     List.Add(pPolygon);
 }
Esempio n. 3
0
 private bool Equals(GooglePolygon other)
 {
     return string.Equals(_fillcolor, other._fillcolor) && _fillopacity.Equals(other._fillopacity) &&
            Equals(_gpoints, other._gpoints) && string.Equals(_id, other._id) &&
            string.Equals(_status, other._status) && string.Equals(_strokecolor, other._strokecolor) &&
            _strokeopacity.Equals(other._strokeopacity) && _strokeweight == other._strokeweight;
 }