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();
        }
Example #2
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
        }