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; } } }
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; }
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; }
public Style(string id, IconStyle iconStyle, ListStyle listStyle) { this.id = id; this.iconStyle = iconStyle; this.listStyle = listStyle; }
public Style(string id, IconStyle iconStyle) { this.id = id; this.iconStyle = iconStyle; }