public ShapeLayerProperties(ESRI.ArcGIS.Client.Map myMap) { InitializeComponent(); this.myMap = myMap; provider = new ShapeLayerProvider(myMap); }
public void CreateFromXml(System.Xml.XmlElement element) { string fileName = string.Empty; foreach (System.Xml.XmlElement child in element.ChildNodes[0].ChildNodes) { if (child.Name.Equals("fileName") && BoundryFilePathExists(child.InnerText)) { lblFileName.Content = child.InnerText; } } if (provider == null) { provider = new ShapeLayerProvider(myMap); } provider.RenderShape(lblFileName.Content.ToString()); if (MapGenerated != null) { MapGenerated(this, new EventArgs()); } }