Exemple #1
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
        }
        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
        }