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 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);

            FillComboBoxes();
        }
        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
        }