public PointLayerProperties(ESRI.ArcGIS.Client.Map myMap, DashboardHelper dashboardHelper, IMapControl mapControl)
        {
            InitializeComponent();

            this.myMap                  = myMap;
            this.dashboardHelper        = dashboardHelper;
            this.mapControl             = mapControl;
            mapControl.TimeVariableSet += new TimeVariableSetHandler(mapControl_TimeVariableSet);
            mapControl.MapDataChanged  += new EventHandler(mapControl_MapDataChanged);

            provider = new PointLayerProvider(myMap);
            provider.DateRangeDefined     += new DateRangeDefinedHandler(provider_DateRangeDefined);
            provider.RecordSelected       += new RecordSelectedHandler(provider_RecordSelected);
            cbxLatitude.SelectionChanged  += new SelectionChangedEventHandler(coord_SelectionChanged);
            cbxLongitude.SelectionChanged += new SelectionChangedEventHandler(coord_SelectionChanged);
            rctColor.MouseUp += new MouseButtonEventHandler(rctColor_MouseUp);
            //rctFilter.MouseUp += new MouseButtonEventHandler(rctFilter_MouseUp);
            rctEdit.MouseUp += new MouseButtonEventHandler(rctEdit_MouseUp);
            FillComboBoxes();

            #region translation;
            lblTitle.Content        = DashboardSharedStrings.GADGET_LABEL_SPOTS;
            lblDescription.Content  = DashboardSharedStrings.GADGET_LABEL_DESCRIPTION;
            lblStyle.Content        = DashboardSharedStrings.GADGET_LABEL_STYLE;
            lblLatitude.Content     = DashboardSharedStrings.GADGET_LATITUDE_FIELD;
            lblLongitude.Content    = DashboardSharedStrings.GADGET_LONGITUDE_FIELD;
            rctColorToolTip.Content = DashboardSharedStrings.MAP_POINT_COLOR;
            rctEditToolTip.Content  = DashboardSharedStrings.MAP_LAYER_EDIT;
            #endregion ;//translation
        }
        public DotDensityServerLayerProperties(ESRI.ArcGIS.Client.Map myMap, DashboardHelper dashboardHelper, IMapControl mapControl)
        {
            InitializeComponent();
            this.myMap           = myMap;
            this.dashboardHelper = dashboardHelper;
            this.mapControl      = mapControl;

            // provider = new DotDensityServerLayerProvider(myMap);
            // provider.FeatureLoaded += new FeatureLoadedHandler(provider_FeatureLoaded);

            FillComboBoxes();
            mapControl.MapDataChanged    += new EventHandler(mapControl_MapDataChanged);
            cbxDataKey.SelectionChanged  += new SelectionChangedEventHandler(keys_SelectionChanged);
            cbxShapeKey.SelectionChanged += new SelectionChangedEventHandler(keys_SelectionChanged);
            cbxValue.SelectionChanged    += new SelectionChangedEventHandler(keys_SelectionChanged);
            rctDotColor.MouseUp          += new MouseButtonEventHandler(rctDotColor_MouseUp);
            rctEdit.MouseUp += new MouseButtonEventHandler(rctEdit_MouseUp);

            #region translation;
            lblTitle.Content       = DashboardSharedStrings.GADGET_CONFIG_TITLE_DOTDENSITY;
            lblClasses.Content     = DashboardSharedStrings.GADGET_MAP_DOT_VALUE;
            lblShapeKey.Content    = DashboardSharedStrings.GADGET_MAP_FEATURE;
            lblDataKey.Content     = DashboardSharedStrings.GADGET_MAP_DATA;
            lblValueField.Content  = DashboardSharedStrings.GADGET_MAP_VALUE;
            rctEditToolTip.Content = DashboardSharedStrings.MAP_LAYER_EDIT;
            #endregion ;//translation
        }
示例#3
0
        public ChoroplethShapeLayerProperties(ESRI.ArcGIS.Client.Map myMap, DashboardHelper dashboardHelper, IMapControl mapControl)
        {
            InitializeComponent();
            this.myMap           = myMap;
            this.dashboardHelper = dashboardHelper;
            this.mapControl      = mapControl;

            Provider = new ChoroplethShapeLayerProvider(myMap);

            FillComboBoxes();
            mapControl.MapDataChanged    += new EventHandler(mapControl_MapDataChanged);
            cbxDataKey.SelectionChanged  += new SelectionChangedEventHandler(keys_SelectionChanged);
            cbxShapeKey.SelectionChanged += new SelectionChangedEventHandler(keys_SelectionChanged);
            cbxValue.SelectionChanged    += new SelectionChangedEventHandler(keys_SelectionChanged);
            cbxClasses.SelectionChanged  += new SelectionChangedEventHandler(keys_SelectionChanged);
            rctEdit.MouseUp += new MouseButtonEventHandler(rctEdit_MouseUp);

            #region translation;
            lblTitle.Content             = DashboardSharedStrings.GADGET_CONFIG_TITLE_CHOROPLETH;
            lblClasses.Content           = DashboardSharedStrings.GADGET_CLASSES;
            lblShapeKey.Content          = DashboardSharedStrings.GADGET_MAP_FEATURE;
            lblDataKey.Content           = DashboardSharedStrings.GADGET_MAP_DATA;
            lblValueField.Content        = DashboardSharedStrings.GADGET_MAP_VALUE;
            lblMissingValueColor.Content = DashboardSharedStrings.GADGET_MAP_COLOR_MISSING;
            lblLoValueColor.Content      = DashboardSharedStrings.GADGET_LOW_VALUE_COLOR;
            lblHiValueColor.Content      = DashboardSharedStrings.GADGET_HIGH_VALUE_COLOR;
            rctEditToolTip.Content       = DashboardSharedStrings.MAP_LAYER_EDIT;
            #endregion ;//translation
        }
        public MapServerLayerProperties(ESRI.ArcGIS.Client.Map myMap)
        {
            InitializeComponent();

            this.myMap = myMap;

            provider = new MapServerLayerProvider(myMap);
        }
示例#5
0
        public LayerList(ESRI.ArcGIS.Client.Map myMap, Epi.View view, Epi.Data.IDbDriver db, DashboardHelper dashboardHelper)
        {
            InitializeComponent();

            #region Translation
            tblockMapLayers.Text = DashboardSharedStrings.GADGET_MAP_LAYERS;
            #endregion
        }
示例#6
0
 public LayerList(ESRI.ArcGIS.Client.Map myMap, Epi.View view, Epi.Data.IDbDriver db, DashboardHelper dashboardHelper)
 {
     InitializeComponent();
     this.myMap = myMap;
     this.view = view;
     this.db = db;
     this.dashboardHelper = dashboardHelper;
 }
示例#7
0
        public CaseClusterProperties(EpiDashboard.Mapping.StandaloneMapControl mapControl, ESRI.ArcGIS.Client.Map myMap, ClusterLayerProperties clusterprop)
        {
            InitializeComponent();

            this.myMap      = myMap;
            this.mapControl = mapControl;

            mapControl.TimeVariableSet += new TimeVariableSetHandler(mapControl_TimeVariableSet);
            mapControl.MapDataChanged  += new EventHandler(mapControl_MapDataChanged);

            provider  = clusterprop.provider;
            layerprop = clusterprop;
            mapControl.SizeChanged += mapControl_SizeChanged;
            rctSelectColor.Fill     = new SolidColorBrush(Color.FromArgb(120, 0, 0, 255));
            colorselected           = new SolidColorBrush(Color.FromArgb(120, 0, 0, 255));

            #region Translation
            lblConfigExpandedTitle.Content = DashboardSharedStrings.GADGET_CONFIG_TITLE_CLUSTER;
            tbtnDataSource.Title           = DashboardSharedStrings.GADGET_MAP_TABBUTTON_DATA_SOURCE;
            tbtnDataSource.Description     = DashboardSharedStrings.GADGET_MAP_TABDESC_DATASOURCE;
            tbtnVariables.Title            = DashboardSharedStrings.GADGET_MAP_TABBUTTON_VARIABLES;
            tbtnVariables.Description      = DashboardSharedStrings.GADGET_MAP_TABDESC_VARIABLES;
            tbtnDisplay.Title       = DashboardSharedStrings.GADGET_MAP_TABBUTTON_DISPLAY;
            tbtnDisplay.Description = DashboardSharedStrings.GADGET_MAP_TABDESC_DISPLAY;
            tbtnFilters.Title       = DashboardSharedStrings.GADGET_MAP_TABBUTTON_FILTERS;
            tbtnFilters.Description = DashboardSharedStrings.GADGET_MAP_TABDESC_FILTERS;

            //Data Source Panel
            tblockPanelDataSource.Content  = DashboardSharedStrings.GADGET_DATA_SOURCE;
            tblockDataSource.Content       = DashboardSharedStrings.GADGET_DATA_SOURCE;
            btnBrowse.Content              = DashboardSharedStrings.BUTTON_BROWSE;
            tblockConnectionString.Content = DashboardSharedStrings.GADGET_CONNECTION_STRING;
            tblockSQLQuery.Content         = DashboardSharedStrings.GADGET_SQL_QUERY;
            tblockLoadingData.Text         = DashboardSharedStrings.GADGET_LOADING_DATA;

            //Variables Panel
            tblockPanelVariables.Content = DashboardSharedStrings.GADGET_TABBUTTON_VARIABLES;
            tblockSelectVarData.Content  = DashboardSharedStrings.GADGET_POF_COORD_VARIABLES;
            lblLatitude.Content          = DashboardSharedStrings.GADGET_LATITUDE_FIELD;
            lblLongitude.Content         = DashboardSharedStrings.GADGET_LONGITUDE_FIELD;

            //Display Panel
            tblockPanelDisplay.Content        = DashboardSharedStrings.GADGET_TABBUTTON_DISPLAY;
            tblockTitleNDescSubheader.Content = DashboardSharedStrings.GADGET_LABEL_DESCRIPTION;
            tblockMapDesc.Content             = DashboardSharedStrings.GADGET_LEGEND_DESCRIPTION;

            //Filters Panel
            tblockPanelDataFilter.Content     = DashboardSharedStrings.GADGET_PANELHEADER_DATA_FILTER;
            tblockSetDataFilter.Content       = DashboardSharedStrings.GADGET_TABDESC_FILTERS;
            tblockAnyFilterGadgetOnly.Content = DashboardSharedStrings.GADGET_FILTER_GADGET_ONLY;

            btnOK.Content     = DashboardSharedStrings.BUTTON_OK;
            btnCancel.Content = DashboardSharedStrings.BUTTON_CANCEL;

            #endregion
        }
示例#8
0
        private static void TargetElement_Loaded(object sender, RoutedEventArgs e)
        {
            if (sender == null)
            {
                return;
            }

            if (sender is WidgetBase)
            {
                WidgetBase targetElement = sender as WidgetBase;

                // Get the value of our attached property
                MapBindingProperties bindingProperties = GetBinding(targetElement);

                // Find the Map control on the Page
                if (targetElement.CurrentPage != null)
                {
                    ESRI.ArcGIS.Client.Map sourceElement = targetElement.CurrentPage.FindName(bindingProperties.SourceElement) as ESRI.ArcGIS.Client.Map;
                    targetElement.MapControl = sourceElement;

                    //string targetPropertyName = bindingProperties.TargetProperty + "Property";
                    //FieldInfo[] targetFields = targetElement.GetType().GetFields(BindingFlags.Public | BindingFlags.Static | BindingFlags.FlattenHierarchy);
                    //FieldInfo targetPropertyField = targetFields.First(f => f.Name == targetPropertyName);
                    //DependencyProperty targetDependencyProperty = targetPropertyField.GetValue(null) as DependencyProperty;

                    // Bind the Map to the target property
                    //targetElement.SetValue(targetDependencyProperty, sourceElement);
                }
            }
            else if (sender is TaskbarBase)
            {
                TaskbarBase          targetElement     = sender as TaskbarBase;
                MapBindingProperties bindingProperties = GetBinding(targetElement);

                // Find the Map control on the Page
                if (targetElement.CurrentPage != null)
                {
                    ESRI.ArcGIS.Client.Map sourceElement = targetElement.CurrentPage.FindName(bindingProperties.SourceElement) as ESRI.ArcGIS.Client.Map;
                    targetElement.MapControl = sourceElement;
                }
            }
            else if (sender is OverviewMapWidget)
            {
                OverviewMapWidget    targetElement     = sender as OverviewMapWidget;
                MapBindingProperties bindingProperties = GetBinding(targetElement);

                // Find the Map control on the Page
                if (targetElement.CurrentPage != null)
                {
                    ESRI.ArcGIS.Client.Map sourceElement = targetElement.CurrentPage.FindName(bindingProperties.SourceElement) as ESRI.ArcGIS.Client.Map;
                    targetElement.MapControl = sourceElement;
                }
            }
        }
示例#9
0
        public MapServerLayerProperties(ESRI.ArcGIS.Client.Map myMap)
        {
            InitializeComponent();

            this.myMap = myMap;

            // provider = new MapServerLayerProvider(myMap);
            #region Translation
            lblTitle.Content = DashboardSharedStrings.GADGET_MAPSERVER;
            #endregion //translation
        }
示例#10
0
        private void LoadWebMap()
        {
            // Downloads a web map from ArcGIS Online that contains a basemap and operational layer (federal land holdings)
            Document doc = new Document();

            doc.GetMapCompleted += (s, e) =>
            {
                _map = e.Map;
                Grid.SetColumn(_map, 1);
                LayoutRoot.Children.Insert(0, _map);
            };
            doc.GetMapAsync("3679c136c2694d0b95bb5e6c3f2b480e");
        }
示例#11
0
        public LayerAdder(ESRI.ArcGIS.Client.Map myMap, Epi.View view, Epi.Data.IDbDriver db, DashboardHelper dashboardHelper, LayerList layerList, MapControl mapControl)
        {
            InitializeComponent();

            this.myMap = myMap;
            this.view = view;
            this.db = db;
            this.dashboardHelper = dashboardHelper;
            this.layerList = layerList;
            this.mapControl = mapControl;

            AddItem();
        }
示例#12
0
        public LayerAdder(ESRI.ArcGIS.Client.Map myMap, Epi.View view, Epi.Data.IDbDriver db, DashboardHelper dashboardHelper, LayerList layerList, MapControl mapControl)
        {
            InitializeComponent();

            this.myMap           = myMap;
            this.view            = view;
            this.db              = db;
            this.dashboardHelper = dashboardHelper;
            this.layerList       = layerList;
            this.mapControl      = mapControl;

            AddItem();
        }
示例#13
0
        public LayerListItem(ESRI.ArcGIS.Client.Map myMap, Epi.View view, Epi.Data.IDbDriver db, DashboardHelper dashboardHelper, MapControl mapControl)
        {
            InitializeComponent();

            this.myMap = myMap;
            this.view = view;
            this.db = db;
            this.dashboardHelper = dashboardHelper;
            this.mapControl = mapControl;

            cbxLayerType.SelectionChanged += new SelectionChangedEventHandler(cbxLayerType_SelectionChanged);
            cbxLayerType.SelectedIndex = 0;
            lblLayerType.Foreground = new SolidColorBrush(FontColor);
        }
示例#14
0
 public void InitializeComponent() {
     if (_contentLoaded) {
         return;
     }
     _contentLoaded = true;
     System.Windows.Application.LoadComponent(this, new System.Uri("/hybrid;component/MainPage.xaml", System.UriKind.Relative));
     this.LayoutRoot = ((System.Windows.Controls.Grid)(this.FindName("LayoutRoot")));
     this.myMap = ((ESRI.ArcGIS.Client.Map)(this.FindName("myMap")));
     this.sideBar = ((System.Windows.Controls.Border)(this.FindName("sideBar")));
     this.expanderMain = ((System.Windows.Controls.Expander)(this.FindName("expanderMain")));
     this.navTools = ((System.Windows.Controls.StackPanel)(this.FindName("navTools")));
     this.image1 = ((System.Windows.Controls.Image)(this.FindName("image1")));
     this.textBlock1 = ((System.Windows.Controls.TextBlock)(this.FindName("textBlock1")));
 }
        public LayerListItem(ESRI.ArcGIS.Client.Map myMap, Epi.View view, Epi.Data.IDbDriver db, DashboardHelper dashboardHelper, MapControl mapControl)
        {
            InitializeComponent();

            this.myMap           = myMap;
            this.view            = view;
            this.db              = db;
            this.dashboardHelper = dashboardHelper;
            this.mapControl      = mapControl;

            cbxLayerType.SelectionChanged += new SelectionChangedEventHandler(cbxLayerType_SelectionChanged);
            cbxLayerType.SelectedIndex     = 0;
            lblLayerType.Foreground        = new SolidColorBrush(FontColor);
        }
        public ChoroplethProperties(EpiDashboard.Mapping.StandaloneMapControl mapControl, ESRI.ArcGIS.Client.Map myMap)
        {
            InitializeComponent();
            this.mapControl = mapControl;
            this.myMap = myMap;
            ////this.DashboardHelper = dashboardHelper;

            //if (DashboardHelper.IsUsingEpiProject)
            //{
            //    //txtProjectPath.Text = dashboardHelper.View.Project.FilePath;

            //    if (System.IO.File.Exists(txtProjectPath.Text))
            //    {
            //        cmbFormName.Items.Clear();
            //        Project project = new Project(txtProjectPath.Text);
            //        foreach (View view in project.Views)
            //        {
            //            cmbFormName.Items.Add(view.Name);
            //        }
            //    }

            //    //cmbFormName.Text = dashboardHelper.View.Name;
            //}
            //else
            //{
            //    //if (!string.IsNullOrEmpty(dashboardHelper.CustomQuery))
            //    //{
            //    //    SqlQuery = DashboardHelper.CustomQuery;
            //    //}
            //}

            //tblockRows.Text = dashboardHelper.DataSet.Tables[0].Rows.Count.ToString() + " unfiltered rows";
            //tblockColumns.Text = dashboardHelper.DataSet.Tables[0].Columns.Count.ToString() + " columns";
            //tblockCacheDateTime.Text = "Data last cached at " + dashboardHelper.LastCacheTime.ToShortDateString() + " " + dashboardHelper.LastCacheTime.ToShortTimeString();
            //tblockCacheTimeElapsed.Text = "Took " + dashboardHelper.TimeToCache + " to locally cache data";

            Epi.ApplicationIdentity appId = new Epi.ApplicationIdentity(typeof(Configuration).Assembly);
            tblockCurrentEpiVersion.Text = "Epi Info " + appId.Version;

            //lbxRelatedDataSources.Items.Clear();
            //if (dashboardHelper.ConnectionsForRelate.Count > 0)
            //{
            //    // Related Data
            //    foreach (RelatedConnection rConn in dashboardHelper.ConnectionsForRelate)
            //    {
            //        lbxRelatedDataSources.Items.Add(rConn.db.ConnectionString);
            //    }
            //}
        }
        public MarkerProperties(ESRI.ArcGIS.Client.Map myMap, ESRI.ArcGIS.Client.Geometry.MapPoint point)
        {
            InitializeComponent();

            this.myMap = myMap;
            this.point = point;

            provider = new MarkerProvider(myMap, point);
            cbxSize.SelectionChanged += new SelectionChangedEventHandler(config_SelectionChanged);
            cbxStyle.SelectionChanged += new SelectionChangedEventHandler(config_SelectionChanged);
            rctColor.MouseUp += new MouseButtonEventHandler(rctColor_MouseUp);
            btnOK.Click += new RoutedEventHandler(btnOK_Click);

            FillComboBoxes();
        }
示例#18
0
        /// <summary>
        /// MapProperty property changed handler.
        /// </summary>
        /// <param name="d">WorldGlobe that changed its Map.</param>
        /// <param name="e">DependencyPropertyChangedEventArgs.</param>
        private static void OnMapPropertyChanged(DependencyObject d, DependencyPropertyChangedEventArgs e)
        {
            WorldGlobe dp = d as WorldGlobe;

            ESRI.ArcGIS.Client.Map newMap = (ESRI.ArcGIS.Client.Map)e.NewValue;
            ESRI.ArcGIS.Client.Map oldMap = (ESRI.ArcGIS.Client.Map)e.OldValue;
            if (oldMap != null)
            {
                oldMap.ExtentChanged -= dp.Map_ExtentChanged;
            }
            if (newMap != null)
            {
                newMap.ExtentChanged += dp.Map_ExtentChanged;
            }
        }
示例#19
0
        public TextProperties(ESRI.ArcGIS.Client.Map myMap, ESRI.ArcGIS.Client.Geometry.MapPoint point)
        {
            InitializeComponent();
            isReadOnlyMode = false;

            this.myMap = myMap;
            this.point = point;

            provider = new TextProvider(myMap, point);
            txtFont.TextChanged += new TextChangedEventHandler(config_TextChanged);
            txtText.TextChanged += new TextChangedEventHandler(config_TextChanged);
            rctColor.MouseUp += new MouseButtonEventHandler(rctColor_MouseUp);
            btnFont.Click += new RoutedEventHandler(btnFont_Click);
            btnOK.Click += new RoutedEventHandler(btnOK_Click);
        }
示例#20
0
        /// <summary>
        /// MapProperty property changed handler.
        /// </summary>
        /// <param name="d">LayerCheckBox that changed its Map.</param>
        /// <param name="e">DependencyPropertyChangedEventArgs.</param>
        private static void OnMapPropertyChanged(DependencyObject d, DependencyPropertyChangedEventArgs e)
        {
            LayerCheckBox dp = d as LayerCheckBox;

            ESRI.ArcGIS.Client.Map newMap = (ESRI.ArcGIS.Client.Map)e.NewValue;
            ESRI.ArcGIS.Client.Map oldMap = (ESRI.ArcGIS.Client.Map)e.OldValue;
            if (oldMap != null && dp.Layer != null)
            {
                oldMap.Layers.Remove(dp.Layer);
            }
            if (newMap != null && dp.Layer != null && dp.IsChecked.Value)
            {
                newMap.Layers.Add(dp.Layer);
            }
        }
示例#21
0
        /// <summary>
        /// MapProperty property changed handler.
        /// </summary>
        /// <param name="d">LayersControl that changed its Map.</param>
        /// <param name="e">DependencyPropertyChangedEventArgs.</param>
        private static void OnMapPropertyChanged(DependencyObject d, DependencyPropertyChangedEventArgs e)
        {
            LayerList dp = d as LayerList;

            ESRI.ArcGIS.Client.Map newMap = (ESRI.ArcGIS.Client.Map)e.NewValue;
            ESRI.ArcGIS.Client.Map oldMap = (ESRI.ArcGIS.Client.Map)e.OldValue;
            if (oldMap != null)
            {
                newMap.Layers.CollectionChanged -= dp.Layers_CollectionChanged;
            }
            if (newMap != null)
            {
                newMap.Layers.CollectionChanged += dp.Layers_CollectionChanged;
            }
            dp.UpdateLayers();
        }
        public DotDensityLayerProperties(ESRI.ArcGIS.Client.Map myMap, DashboardHelper dashboardHelper, IMapControl mapControl)
        {
            InitializeComponent();
            this.myMap = myMap;
            this.dashboardHelper = dashboardHelper;
            this.mapControl = mapControl;

            provider = new DotDensityLayerProvider(myMap);

            FillComboBoxes();
            mapControl.MapDataChanged += new EventHandler(mapControl_MapDataChanged);
            btnShapeFile.Click += new RoutedEventHandler(btnShapeFile_Click);
            cbxDataKey.SelectionChanged += new SelectionChangedEventHandler(keys_SelectionChanged);
            cbxShapeKey.SelectionChanged += new SelectionChangedEventHandler(keys_SelectionChanged);
            cbxValue.SelectionChanged += new SelectionChangedEventHandler(keys_SelectionChanged);
            rctDotColor.MouseUp += new MouseButtonEventHandler(rctDotColor_MouseUp);
            rctFilter.MouseUp += new MouseButtonEventHandler(rctFilter_MouseUp);
        }
示例#23
0
        public static void MeasureScreenBoundingBox(ESRI.ArcGIS.Client.Map map, Envelope envelop, out double width, out double height)
        {
            if (envelop != null)
            {
                MapPoint             leftCorner  = new MapPoint(envelop.XMin, envelop.YMin);
                System.Windows.Point p1          = map.MapToScreen(leftCorner);
                MapPoint             rightCorner = new MapPoint(envelop.XMax, envelop.YMax);
                System.Windows.Point p2          = map.MapToScreen(rightCorner);

                width  = Math.Abs(p2.X - p1.X);
                height = Math.Abs(p1.Y - p2.Y);
            }
            else
            {
                width  = 0;
                height = 0;
            }
        }
        public ClusterLayerProperties(ESRI.ArcGIS.Client.Map myMap, DashboardHelper dashboardHelper, IMapControl mapControl)
        {
            InitializeComponent();

            this.myMap = myMap;
            this.dashboardHelper = dashboardHelper;
            this.mapControl = mapControl;
            mapControl.TimeVariableSet += new TimeVariableSetHandler(mapControl_TimeVariableSet);
            mapControl.MapDataChanged += new EventHandler(mapControl_MapDataChanged);

            provider = new ClusterLayerProvider(myMap);
            provider.DateRangeDefined += new DateRangeDefinedHandler(provider_DateRangeDefined);
            provider.RecordSelected += new RecordSelectedHandler(provider_RecordSelected);
            cbxLatitude.SelectionChanged += new SelectionChangedEventHandler(coord_SelectionChanged);
            cbxLongitude.SelectionChanged += new SelectionChangedEventHandler(coord_SelectionChanged);
            rctColor.MouseUp += new MouseButtonEventHandler(rctColor_MouseUp);
            rctFilter.MouseUp += new MouseButtonEventHandler(rctFilter_MouseUp);

            FillComboBoxes();
        }
        public ChoroplethServerLayerProperties(ESRI.ArcGIS.Client.Map myMap, DashboardHelper dashboardHelper, IMapControl mapControl)
        {
            InitializeComponent();
            this.myMap = myMap;
            this.dashboardHelper = dashboardHelper;
            this.mapControl = mapControl;

            provider = new ChoroplethServerLayerProvider(myMap);
            provider.FeatureLoaded += new FeatureLoadedHandler(provider_FeatureLoaded);

            FillComboBoxes();
            mapControl.MapDataChanged += new EventHandler(mapControl_MapDataChanged);
            btnShapeFile.Click += new RoutedEventHandler(btnShapeFile_Click);
            cbxDataKey.SelectionChanged += new SelectionChangedEventHandler(keys_SelectionChanged);
            cbxShapeKey.SelectionChanged += new SelectionChangedEventHandler(keys_SelectionChanged);
            cbxValue.SelectionChanged += new SelectionChangedEventHandler(keys_SelectionChanged);
            cbxClasses.SelectionChanged += new SelectionChangedEventHandler(keys_SelectionChanged);
            rctHighColor.MouseUp += new MouseButtonEventHandler(rctHighColor_MouseUp);
            rctLowColor.MouseUp += new MouseButtonEventHandler(rctLowColor_MouseUp);
            rctFilter.MouseUp += new MouseButtonEventHandler(rctFilter_MouseUp);
        }
        public DotDensityKmlLayerProperties(ESRI.ArcGIS.Client.Map myMap, DashboardHelper dashboardHelper, IMapControl mapControl)
        {
            InitializeComponent();
            this.myMap           = myMap;
            this.dashboardHelper = dashboardHelper;
            this.mapControl      = mapControl;

            // provider = new DotDensityKmlLayerProvider(myMap);
            // provider.FeatureLoaded += new FeatureLoadedHandler(provider_FeatureLoaded);

            FillComboBoxes();
            mapControl.MapDataChanged    += new EventHandler(mapControl_MapDataChanged);
            cbxDataKey.SelectionChanged  += new SelectionChangedEventHandler(keys_SelectionChanged);
            cbxShapeKey.SelectionChanged += new SelectionChangedEventHandler(keys_SelectionChanged);
            cbxValue.SelectionChanged    += new SelectionChangedEventHandler(keys_SelectionChanged);
            rctDotColor.MouseUp          += new MouseButtonEventHandler(rctDotColor_MouseUp);
            rctEdit.MouseUp += new MouseButtonEventHandler(rctEdit_MouseUp);

            #region translation;
            rctEditToolTip.Content = DashboardSharedStrings.MAP_LAYER_EDIT;
            #endregion ;//translation
        }
示例#27
0
        public ZoneProperties(ESRI.ArcGIS.Client.Map myMap, ESRI.ArcGIS.Client.Geometry.MapPoint point)
        {
            InitializeComponent();

            this.myMap = myMap;
            this.point = point;

            provider = new ZoneProvider(myMap, point);
            cbxUnits.SelectionChanged += new SelectionChangedEventHandler(config_SelectionChanged);
            txtRadius.TextChanged     += new TextChangedEventHandler(txtRadius_TextChanged);
            rctColor.MouseUp          += new MouseButtonEventHandler(rctColor_MouseUp);
            btnOK.Click += new RoutedEventHandler(btnOK_Click);

            FillComboBoxes();

            #region translation
            lblTitle.Content        = DashboardSharedStrings.GADGET_MAP_ZONE;
            lblRadius.Content       = DashboardSharedStrings.GADGET_MAP_ZONE_RADIUS;
            lblUnits.Content        = DashboardSharedStrings.GADGET_MAP_ZONE_UNITS;
            rctColorToolTip.Content = DashboardSharedStrings.GADGET_MAP_ZONE_COLOR;
            btnOK.Content           = DashboardSharedStrings.BUTTON_OK;
            #endregion //translation
        }
        public MarkerProperties(ESRI.ArcGIS.Client.Map myMap, ESRI.ArcGIS.Client.Geometry.MapPoint point)
        {
            InitializeComponent();

            this.myMap = myMap;
            this.point = point;

            provider = new MarkerProvider(myMap, point);
            cbxSize.SelectionChanged  += new SelectionChangedEventHandler(config_SelectionChanged);
            cbxStyle.SelectionChanged += new SelectionChangedEventHandler(config_SelectionChanged);
            rctColor.MouseUp          += new MouseButtonEventHandler(rctColor_MouseUp);
            btnOK.Click += new RoutedEventHandler(btnOK_Click);

            FillComboBoxes();

            #region translation
            lblTitle.Content        = DashboardSharedStrings.GADGET_MAP_MARKER;
            lblStyle.Content        = DashboardSharedStrings.GADGET_LABEL_STYLE;
            lblSize.Content         = DashboardSharedStrings.GADGET_MAP_SIZE;
            rctColorToolTip.Content = DashboardSharedStrings.MAP_POINT_COLOR;
            btnOK.Content           = DashboardSharedStrings.BUTTON_OK;
            #endregion //translation
        }
 public void InitializeComponent() {
     if (_contentLoaded) {
         return;
     }
     _contentLoaded = true;
     System.Windows.Application.LoadComponent(this, new System.Uri("/CourseWorkGIS2014;component/MainPage.xaml", System.UriKind.Relative));
     this.LayoutRoot = ((System.Windows.Controls.Grid)(this.FindName("LayoutRoot")));
     this.MyMap = ((ESRI.ArcGIS.Client.Map)(this.FindName("MyMap")));
     this.MyList = ((System.Windows.Controls.ListBox)(this.FindName("MyList")));
     this.MyOverviewMap = ((ESRI.ArcGIS.Client.Toolkit.OverviewMap)(this.FindName("MyOverviewMap")));
     this.MyMagnifyImage = ((System.Windows.Controls.Image)(this.FindName("MyMagnifyImage")));
     this.MyMagnifier = ((ESRI.ArcGIS.Client.Toolkit.Magnifier)(this.FindName("MyMagnifier")));
     this.MyDataGrid = ((ESRI.ArcGIS.Client.Toolkit.FeatureDataGrid)(this.FindName("MyDataGrid")));
     this.ResultsDisplayCanvas = ((System.Windows.Controls.Canvas)(this.FindName("ResultsDisplayCanvas")));
     this.DataDisplayTitle = ((System.Windows.Controls.TextBlock)(this.FindName("DataDisplayTitle")));
     this.StateNameTextBox = ((System.Windows.Controls.TextBox)(this.FindName("StateNameTextBox")));
     this.QueryDetailsDataGrid = ((System.Windows.Controls.DataGrid)(this.FindName("QueryDetailsDataGrid")));
     this.IdentifyResultsStackPanel = ((System.Windows.Controls.StackPanel)(this.FindName("IdentifyResultsStackPanel")));
     this.IdentifyComboBox = ((System.Windows.Controls.ComboBox)(this.FindName("IdentifyComboBox")));
     this.IdentifyDetailsDataGrid = ((System.Windows.Controls.DataGrid)(this.FindName("IdentifyDetailsDataGrid")));
     this.FindText = ((System.Windows.Controls.TextBox)(this.FindName("FindText")));
     this.FindButton = ((System.Windows.Controls.Button)(this.FindName("FindButton")));
     this.FindDetailsDataGrid = ((System.Windows.Controls.DataGrid)(this.FindName("FindDetailsDataGrid")));
 }
示例#30
0
        public TextProperties(ESRI.ArcGIS.Client.Map myMap, ESRI.ArcGIS.Client.Geometry.MapPoint point)
        {
            InitializeComponent();
            isReadOnlyMode = false;

            this.myMap = myMap;
            this.point = point;

            provider             = new TextProvider(myMap, point);
            txtFont.TextChanged += new TextChangedEventHandler(config_TextChanged);
            txtText.TextChanged += new TextChangedEventHandler(config_TextChanged);
            rctColor.MouseUp    += new MouseButtonEventHandler(rctColor_MouseUp);
            btnFont.Click       += new RoutedEventHandler(btnFont_Click);
            btnOK.Click         += new RoutedEventHandler(btnOK_Click);

            #region Translation
            lblTitle.Content        = DashboardSharedStrings.GADGET_MAP_LABEL;
            lblText.Content         = DashboardSharedStrings.GADGET_MAP_LABEL;
            lblFont.Content         = DashboardSharedStrings.GADGET_MAP_FONT_STYLE;
            btnFont.Content         = DashboardSharedStrings.GADGET_MAP_LABEL_FONT;
            rctColorToolTip.Content = DashboardSharedStrings.GADGET_MAP_LABEL_COLOR;
            btnOK.Content           = DashboardSharedStrings.BUTTON_OK;
            #endregion //Translation
        }
        public PointofInterestProperties(EpiDashboard.Mapping.StandaloneMapControl mapControl, ESRI.ArcGIS.Client.Map myMap, PointLayerProperties pointlayerprop)
        {
            InitializeComponent();

            this.myMap      = myMap;
            this.mapControl = mapControl;

            mapControl.TimeVariableSet += new TimeVariableSetHandler(mapControl_TimeVariableSet);
            mapControl.MapDataChanged  += new EventHandler(mapControl_MapDataChanged);
            layerprop               = pointlayerprop;
            provider                = pointlayerprop.provider;
            rctSelectColor.Fill     = new SolidColorBrush(Color.FromArgb(120, 0, 0, 255));
            colorselected           = new SolidColorBrush(Color.FromArgb(120, 0, 0, 255));
            mapControl.SizeChanged += mapControl_SizeChanged;
            #region Translation

            //Point of Interest Left Panel
            lblConfigExpandedTitle.Content = DashboardSharedStrings.GADGET_CONFIG_TITLE_SPOTMAP;
            tbtnDataSource.Title           = DashboardSharedStrings.GADGET_DATA_SOURCE;
            tbtnDataSource.Description     = DashboardSharedStrings.GADGET_TABDESC_DATASOURCE;
            tbtnVariables.Title            = DashboardSharedStrings.GADGET_TABBUTTON_VARIABLES;
            tbtnVariables.Description      = DashboardSharedStrings.GADGET_TABDESC_COORD_VARIABLES;
            tbtnDisplay.Title       = DashboardSharedStrings.GADGET_TABBUTTON_DISPLAY;
            tbtnDisplay.Description = DashboardSharedStrings.GADGET_TABDESC_DISPLAY;
            //tbtnCharts.Title = DashboardSharedStrings.GADGET_TAB_COLORS_STYLES;
            //tbtnCharts.Description = DashboardSharedStrings.GADGET_TABDESC_SETCOLORS;
            tbtnFilter.Title       = DashboardSharedStrings.GADGET_TABBUTTON_FILTERS;
            tbtnFilter.Description = DashboardSharedStrings.GADGET_TABDESC_FILTERS_MAPS;

            //Data Source Panel
            tblockPanelDataSource.Content  = DashboardSharedStrings.GADGET_DATA_SOURCE;
            tblockDataSource.Content       = DashboardSharedStrings.GADGET_DATA_SOURCE;
            btnBrowse.Content              = DashboardSharedStrings.BUTTON_BROWSE;
            tblockConnectionString.Content = DashboardSharedStrings.GADGET_CONNECTION_STRING;
            tblockSQLQuery.Content         = DashboardSharedStrings.GADGET_SQL_QUERY;
            tblockLoadingData.Text         = DashboardSharedStrings.GADGET_LOADING_DATA;
            //Variables Panel
            tblockPanelVariables.Content = DashboardSharedStrings.GADGET_TABBUTTON_VARIABLES;
            tblockSelectVarData.Content  = DashboardSharedStrings.GADGET_POF_COORD_VARIABLES;
            lblLatitude.Content          = DashboardSharedStrings.GADGET_LATITUDE_FIELD;
            lblLongitude.Content         = DashboardSharedStrings.GADGET_LONGITUDE_FIELD;

            //Display Panel
            tblockPanelDisplay.Content        = DashboardSharedStrings.GADGET_TABBUTTON_DISPLAY;
            tblockTitleNDescSubheader.Content = DashboardSharedStrings.GADGET_LABEL_DESCRIPTION;
            tblockMapDesc.Content             = DashboardSharedStrings.GADGET_LEGEND_DESCRIPTION;

            //Colors and Styles Panel
            lblPanelHdrColorsAndStyles.Content = DashboardSharedStrings.GADGET_TAB_COLORS_STYLES;
            lblColor.Content = DashboardSharedStrings.GADGET_PANELSUBHEADER_COLOR;
            tblcolor.Text    = DashboardSharedStrings.GADGET_SELECT_COLOR;
            lblStyle.Content = DashboardSharedStrings.GADGET_PANELSUBHEADER_STYLES;
            lblShape.Content = DashboardSharedStrings.GADGET_SELECT_SHAPE;

            //Filters Panel
            tblockPanelDataFilter.Content = DashboardSharedStrings.GADGET_PANELHEADER_DATA_FILTER;
            tblockSetDataFilter.Content   = DashboardSharedStrings.GADGET_TABDESC_FILTERS_MAPS;

            btnOK.Content     = DashboardSharedStrings.BUTTON_OK;
            btnCancel.Content = DashboardSharedStrings.BUTTON_CANCEL;

            #endregion // Translation
        }
 public void InitializeComponent() {
     if (_contentLoaded) {
         return;
     }
     _contentLoaded = true;
     System.Windows.Application.LoadComponent(this, new System.Uri("/Visualization;component/MainPage.xaml", System.UriKind.Relative));
     this.LayoutRoot = ((System.Windows.Controls.Grid)(this.FindName("LayoutRoot")));
     this.MyMap = ((ESRI.ArcGIS.Client.Map)(this.FindName("MyMap")));
     this.BaseLayer = ((ESRI.ArcGIS.Client.ArcGISTiledMapServiceLayer)(this.FindName("BaseLayer")));
     this.WorkProgramFeatureLayer = ((ESRI.ArcGIS.Client.FeatureLayer)(this.FindName("WorkProgramFeatureLayer")));
     this.HartShapeFeatureLayer = ((ESRI.ArcGIS.Client.FeatureLayer)(this.FindName("HartShapeFeatureLayer")));
     this.PstaShapeFeatureLayer = ((ESRI.ArcGIS.Client.FeatureLayer)(this.FindName("PstaShapeFeatureLayer")));
     this.HartStopFeatureLayer = ((ESRI.ArcGIS.Client.FeatureLayer)(this.FindName("HartStopFeatureLayer")));
     this.PstaStopFeatureLayer = ((ESRI.ArcGIS.Client.FeatureLayer)(this.FindName("PstaStopFeatureLayer")));
     this.MyList = ((System.Windows.Controls.ListBox)(this.FindName("MyList")));
     this.FindAttrTable = ((System.Windows.Controls.ComboBox)(this.FindName("FindAttrTable")));
     this.stops = ((System.Windows.Controls.ComboBoxItem)(this.FindName("stops")));
     this.routes = ((System.Windows.Controls.ComboBoxItem)(this.FindName("routes")));
     this.whereTextLabel = ((System.Windows.Controls.TextBlock)(this.FindName("whereTextLabel")));
     this.FindAttrValue = ((System.Windows.Controls.TextBox)(this.FindName("FindAttrValue")));
     this.ExecuteButton = ((System.Windows.Controls.Button)(this.FindName("ExecuteButton")));
     this.domainDataSource1 = ((System.Windows.Controls.DomainDataSource)(this.FindName("domainDataSource1")));
     this.domainDataSource2 = ((System.Windows.Controls.DomainDataSource)(this.FindName("domainDataSource2")));
     this.pieSeries1 = ((System.Windows.Controls.DataVisualization.Charting.PieSeries)(this.FindName("pieSeries1")));
     this.MyToolbar = ((ESRI.ArcGIS.Client.Toolkit.Toolbar)(this.FindName("MyToolbar")));
     this.StatusTextBlock = ((System.Windows.Controls.TextBlock)(this.FindName("StatusTextBlock")));
     this.MyProgressBar = ((ESRI.ArcGIS.Client.Toolkit.MapProgressBar)(this.FindName("MyProgressBar")));
 }
示例#33
0
 public void InitializeComponent() {
     if (_contentLoaded) {
         return;
     }
     _contentLoaded = true;
     System.Windows.Application.LoadComponent(this, new System.Uri("/hybrid;component/MainPage.xaml", System.UriKind.Relative));
     this.LayoutRoot = ((System.Windows.Controls.Grid)(this.FindName("LayoutRoot")));
     this.myMap = ((ESRI.ArcGIS.Client.Map)(this.FindName("myMap")));
     this.identifyPanel = ((System.Windows.Controls.StackPanel)(this.FindName("identifyPanel")));
     this.identifyResultsStackPanel = ((System.Windows.Controls.StackPanel)(this.FindName("identifyResultsStackPanel")));
     this.btnHideIdentify = ((System.Windows.Controls.Button)(this.FindName("btnHideIdentify")));
     this.identifyComboBox = ((System.Windows.Controls.ComboBox)(this.FindName("identifyComboBox")));
     this.identifyDetailDataGrid = ((System.Windows.Controls.DataGrid)(this.FindName("identifyDetailDataGrid")));
     this.measureTools = ((System.Windows.Controls.Border)(this.FindName("measureTools")));
     this.btnCloseTools = ((System.Windows.Controls.Button)(this.FindName("btnCloseTools")));
     this.btnPoint = ((System.Windows.Controls.Button)(this.FindName("btnPoint")));
     this.imgPoint = ((System.Windows.Controls.Image)(this.FindName("imgPoint")));
     this.txtBlkPoint = ((System.Windows.Controls.TextBlock)(this.FindName("txtBlkPoint")));
     this.btnLine = ((System.Windows.Controls.Button)(this.FindName("btnLine")));
     this.imgLine = ((System.Windows.Controls.Image)(this.FindName("imgLine")));
     this.txtBlkLine = ((System.Windows.Controls.TextBlock)(this.FindName("txtBlkLine")));
     this.btnPolygon = ((System.Windows.Controls.Button)(this.FindName("btnPolygon")));
     this.imgPolygon = ((System.Windows.Controls.Image)(this.FindName("imgPolygon")));
     this.txtBlkPolygon = ((System.Windows.Controls.TextBlock)(this.FindName("txtBlkPolygon")));
     this.btnClearGraphics = ((System.Windows.Controls.Button)(this.FindName("btnClearGraphics")));
     this.imgClearGraphics = ((System.Windows.Controls.Image)(this.FindName("imgClearGraphics")));
     this.txtBlkClearGraphics = ((System.Windows.Controls.TextBlock)(this.FindName("txtBlkClearGraphics")));
     this.txtBlkMeasurement = ((System.Windows.Controls.TextBlock)(this.FindName("txtBlkMeasurement")));
     this.scaleline1 = ((ESRI.ArcGIS.Client.Toolkit.ScaleLine)(this.FindName("scaleline1")));
     this.mapProgressBar = ((ESRI.ArcGIS.Client.Toolkit.MapProgressBar)(this.FindName("mapProgressBar")));
     this.bookMarkBar = ((System.Windows.Controls.Border)(this.FindName("bookMarkBar")));
     this.btnHideBookmarks = ((System.Windows.Controls.Button)(this.FindName("btnHideBookmarks")));
     this.txtBlkCloseBookmarks = ((System.Windows.Controls.TextBlock)(this.FindName("txtBlkCloseBookmarks")));
     this.bookmark1 = ((ESRI.ArcGIS.Client.Toolkit.Bookmark)(this.FindName("bookmark1")));
     this.sideBar = ((System.Windows.Controls.Border)(this.FindName("sideBar")));
     this.expanderMain = ((System.Windows.Controls.Expander)(this.FindName("expanderMain")));
     this.navTools = ((System.Windows.Controls.StackPanel)(this.FindName("navTools")));
     this.btnZoomIn = ((System.Windows.Controls.Button)(this.FindName("btnZoomIn")));
     this.image1 = ((System.Windows.Controls.Image)(this.FindName("image1")));
     this.txtBlkZoomIn = ((System.Windows.Controls.TextBlock)(this.FindName("txtBlkZoomIn")));
     this.btnZoomOut = ((System.Windows.Controls.Button)(this.FindName("btnZoomOut")));
     this.imgZoomOut = ((System.Windows.Controls.Image)(this.FindName("imgZoomOut")));
     this.txtBlkZoomOut = ((System.Windows.Controls.TextBlock)(this.FindName("txtBlkZoomOut")));
     this.btnPrevExtent = ((System.Windows.Controls.Button)(this.FindName("btnPrevExtent")));
     this.imgPrevExtent = ((System.Windows.Controls.Image)(this.FindName("imgPrevExtent")));
     this.txtBlkPrevExtent = ((System.Windows.Controls.TextBlock)(this.FindName("txtBlkPrevExtent")));
     this.btnNextExtent = ((System.Windows.Controls.Button)(this.FindName("btnNextExtent")));
     this.imgNextExtent = ((System.Windows.Controls.Image)(this.FindName("imgNextExtent")));
     this.txtBlkNextExtent = ((System.Windows.Controls.TextBlock)(this.FindName("txtBlkNextExtent")));
     this.btnFullExtent = ((System.Windows.Controls.Button)(this.FindName("btnFullExtent")));
     this.imgFullExtent = ((System.Windows.Controls.Image)(this.FindName("imgFullExtent")));
     this.txtBlkFullExtent = ((System.Windows.Controls.TextBlock)(this.FindName("txtBlkFullExtent")));
     this.btnPan = ((System.Windows.Controls.Button)(this.FindName("btnPan")));
     this.imgPan = ((System.Windows.Controls.Image)(this.FindName("imgPan")));
     this.txtBlkPan = ((System.Windows.Controls.TextBlock)(this.FindName("txtBlkPan")));
     this.btnIdentify = ((System.Windows.Controls.Button)(this.FindName("btnIdentify")));
     this.imgIdentify = ((System.Windows.Controls.Image)(this.FindName("imgIdentify")));
     this.txtBlkIdentify = ((System.Windows.Controls.TextBlock)(this.FindName("txtBlkIdentify")));
     this.btnMeasure = ((System.Windows.Controls.Button)(this.FindName("btnMeasure")));
     this.imgMeasure = ((System.Windows.Controls.Image)(this.FindName("imgMeasure")));
     this.txtBlkMeasure = ((System.Windows.Controls.TextBlock)(this.FindName("txtBlkMeasure")));
     this.btnBookmark = ((System.Windows.Controls.Button)(this.FindName("btnBookmark")));
     this.imgBookmark = ((System.Windows.Controls.Image)(this.FindName("imgBookmark")));
     this.txtBlkBookmark = ((System.Windows.Controls.TextBlock)(this.FindName("txtBlkBookmark")));
     this.btnHelp = ((System.Windows.Controls.Button)(this.FindName("btnHelp")));
     this.imgHelp = ((System.Windows.Controls.Image)(this.FindName("imgHelp")));
     this.txtBlkHelp = ((System.Windows.Controls.TextBlock)(this.FindName("txtBlkHelp")));
     this.btnSearch = ((System.Windows.Controls.Button)(this.FindName("btnSearch")));
     this.imgSearch = ((System.Windows.Controls.Image)(this.FindName("imgSearch")));
     this.txtBlkSearch = ((System.Windows.Controls.TextBlock)(this.FindName("txtBlkSearch")));
     this.btnPrint = ((System.Windows.Controls.Button)(this.FindName("btnPrint")));
     this.imgPrint = ((System.Windows.Controls.Image)(this.FindName("imgPrint")));
     this.txtBlkPrint = ((System.Windows.Controls.TextBlock)(this.FindName("txtBlkPrint")));
 }
示例#34
0
 public void InitializeComponent() {
     if (_contentLoaded) {
         return;
     }
     _contentLoaded = true;
     System.Windows.Application.LoadComponent(this, new System.Uri("/ESRIStandardMapApplication1;component/MainPage.xaml", System.UriKind.Relative));
     this.LayoutRoot = ((System.Windows.Controls.Grid)(this.FindName("LayoutRoot")));
     this.Map = ((ESRI.ArcGIS.Client.Map)(this.FindName("Map")));
     this.MainManu = ((ESRI.ArcGIS.SilverlightMapApp.CollapsiblePanel)(this.FindName("MainManu")));
     this.BannerGrid = ((System.Windows.Controls.Grid)(this.FindName("BannerGrid")));
     this.title = ((System.Windows.Controls.TextBlock)(this.FindName("title")));
     this.separatorBar = ((System.Windows.Shapes.Rectangle)(this.FindName("separatorBar")));
     this.subtitle = ((System.Windows.Controls.TextBlock)(this.FindName("subtitle")));
     this.myMenu = ((System.Windows.Controls.Button)(this.FindName("myMenu")));
     this.btnAbout = ((System.Windows.Controls.Primitives.ToggleButton)(this.FindName("btnAbout")));
     this.myMenuItems = ((System.Windows.Controls.Grid)(this.FindName("myMenuItems")));
     this.myMenuItem1 = ((System.Windows.Controls.Button)(this.FindName("myMenuItem1")));
     this.myMenuItem2 = ((System.Windows.Controls.Button)(this.FindName("myMenuItem2")));
     this.myMenuItem3 = ((System.Windows.Controls.Button)(this.FindName("myMenuItem3")));
     this.BaseMapSwitcher = ((System.Windows.Controls.Border)(this.FindName("BaseMapSwitcher")));
     this.MainToolbar = ((ESRI.ArcGIS.SilverlightMapApp.CollapsiblePanel)(this.FindName("MainToolbar")));
     this.btnToggleBaseMapSwitcher = ((System.Windows.Controls.Button)(this.FindName("btnToggleBaseMapSwitcher")));
     this.btnToggleMapLegend = ((System.Windows.Controls.Primitives.ToggleButton)(this.FindName("btnToggleMapLegend")));
     this.btnToggleOverviewMap = ((System.Windows.Controls.Primitives.ToggleButton)(this.FindName("btnToggleOverviewMap")));
     this.btnToggleMagnifyingGlass = ((System.Windows.Controls.Button)(this.FindName("btnToggleMagnifyingGlass")));
     this.Navigator = ((ESRI.ArcGIS.Client.Toolkit.Navigation)(this.FindName("Navigator")));
     this.ScaleBar = ((ESRI.ArcGIS.Client.Toolkit.ScaleLine)(this.FindName("ScaleBar")));
     this.OverviewMapPanel = ((ESRI.ArcGIS.SilverlightMapApp.WindowPanel)(this.FindName("OverviewMapPanel")));
     this.OVMap = ((ESRI.ArcGIS.Client.Toolkit.OverviewMap)(this.FindName("OVMap")));
     this.MagnifyingGlass = ((ESRI.ArcGIS.Client.Toolkit.MagnifyingGlass)(this.FindName("MagnifyingGlass")));
     this.MapLegendPanel = ((ESRI.ArcGIS.SilverlightMapApp.WindowPanel)(this.FindName("MapLegendPanel")));
     this.Legend = ((ESRI.ArcGIS.Client.Toolkit.Legend)(this.FindName("Legend")));
     this.AboutWindow = ((ESRI.ArcGIS.SilverlightMapApp.WindowPanel)(this.FindName("AboutWindow")));
 }
 private void LoadWebMap()
 {
     // Downloads a web map from ArcGIS Online that contains a basemap and operational layer (federal land holdings)
     Document doc = new Document();
     doc.GetMapCompleted += (s, e) =>
     {
         _map = e.Map;
         Grid.SetColumn(_map, 1);
         LayoutRoot.Children.Insert(0, _map);
     };
     doc.GetMapAsync("3679c136c2694d0b95bb5e6c3f2b480e");
 }