Пример #1
1
 public Style(XElement xElement)
 {
     foreach (XElement descendant in xElement.DescendantNodes())
     {
         switch (descendant.Name.ToString())
         {
             case "IconStyle":
                 this.iconStyle = new IconStyle(descendant);
                 break;
             //case "LabelStyle":
             //    this.labelStyle = new LabelStyle(descendant);
             //    break;
             //case "LineStyle":
             //    this.lineStyle = new LineStyle(descendant);
             //    break;
             //case "PolyStyle":
             //    this.polyStyle = new PolyStyle(descendant);
             //    break;
             //case "BalloonStyle":
             //    this.balloonStyle = new BalloonStyle(descendant);
             //    break;
             //case "ListStyle":
             //    this.listStyle = new ListStyle(descendant);
             //    break;
         }
     }
 }
Пример #2
0
 public Style(Style style)
 {
     this.id = style.id;
     this.iconStyle = style.iconStyle;
     this.labelStyle = style.labelStyle;
     this.lineStyle = style.lineStyle;
     this.polyStyle = style.polyStyle;
     this.balloonStyle = style.balloonStyle;
     this.listStyle = style.listStyle;
 }
Пример #3
0
 public Style(string id, IconStyle iconStyle, LabelStyle labelStyle, LineStyle lineStyle, PolyStyle polyStyle, BalloonStyle balloonStyle, ListStyle listStyle)
 {
     this.id = id;
     this.iconStyle = iconStyle;
     this.labelStyle = labelStyle;
     this.lineStyle = lineStyle;
     this.polyStyle = polyStyle;
     this.balloonStyle = balloonStyle;
     this.listStyle = listStyle;
 }
Пример #4
0
 public Style(string id, IconStyle iconStyle, ListStyle listStyle)
 {
     this.id        = id;
     this.iconStyle = iconStyle;
     this.listStyle = listStyle;
 }
Пример #5
0
 public Style(string id, IconStyle iconStyle)
 {
     this.id        = id;
     this.iconStyle = iconStyle;
 }
Пример #6
0
 public Style(string id, IconStyle iconStyle, ListStyle listStyle)
 {
     this.id = id;
     this.iconStyle = iconStyle;
     this.listStyle = listStyle;
 }
Пример #7
0
 public Style(string id, IconStyle iconStyle)
 {
     this.id = id;
     this.iconStyle = iconStyle;
 }