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);
            rctEdit.MouseUp += new MouseButtonEventHandler(rctEdit_MouseUp);

            FillComboBoxes();

            #region translation;
            lblTitle.Content       = DashboardSharedStrings.GADGET_CONFIG_TITLE_CLUSTER;
            lblDescription.Content = DashboardSharedStrings.GADGET_LABEL_DESCRIPTION;
            lblLatitude.Content    = DashboardSharedStrings.GADGET_LATITUDE_FIELD;
            lblLongitude.Content   = DashboardSharedStrings.GADGET_LONGITUDE_FIELD;
            rctEditToolTip.Content = DashboardSharedStrings.MAP_LAYER_EDIT;
            #endregion ;//translation
        }
Beispiel #2
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 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();
        }