protected void OnCustomDataSelected(DataSelectedCustomDataSelectorUserControlEventArgs e)
        {
            EventHandler <DataSelectedCustomDataSelectorUserControlEventArgs> handler = DataSelected;

            if (handler != null)
            {
                handler(this, e);
            }
        }
        private void MainForm_CustomDataSelected(object sender, DataSelectedCustomDataSelectorUserControlEventArgs e)
        {
            customFeatureLayer = e.ShapeFileFeatureLayer;
            customFeatureLayer.ZoomLevelSet.ZoomLevel01.ApplyUntilZoomLevel = ApplyUntilZoomLevel.Level20;
            currentFeatureLayer = customFeatureLayer;
            currentStyleBuilder.SelectedColumns.Clear();
            map.CurrentExtent = e.ShapeFileFeatureLayer.GetBoundingBox();

            ((LayerOverlay)map.Overlays["DemographicLayerOverlayKey"]).Layers.Clear();
            ((LayerOverlay)map.Overlays["DemographicLayerOverlayKey"]).Layers.Add(currentFeatureLayer);
        }