private void SharpMapClick(object sender, RoutedEventArgs e) { mapControl.Map = ShapefileSample.CreateMap(); layerList.Initialize(mapControl.Map.Layers); mapControl.Refresh(); }
void Form1_Load(object sender, EventArgs e) { mapControl1.Map = ShapefileSample.CreateMap(); }