public MainWindowViewModel(MapModel mapModel)
        {
            this.mapModel = mapModel;

            InitializeProperties();
            InitializetionDataCategories();
            InitializeGeoSimpleColorsList();
            InitializeEvents(mapModel);

            UpdateUIControls(ThematicDemographicStyle);
            SelectedCategory = CategoryList[0];
            CurrentStyleBuilder.SelectedColumns.Add(SelectedCategory.Columns[0].ColumnName);
            mapModel.LegendTitle = SelectedCategory.Columns[0].LegendTitle;
        }
 private void InitializeEvents(MapModel mapModel)
 {
     mapModel.MapControl.MapTools.MouseCoordinate.CustomFormatted += MouseCoordinate_CustomFormatted;
     mapModel.MapControl.MouseMove += WpfMap_MouseMove;
 }
        private void Window_Loaded(object sender, RoutedEventArgs e)
        {
            mapModel = new MapModel(wpfMap);
            mainWindowViewModel = new MainWindowViewModel(mapModel);
            DataContext = mainWindowViewModel;

            mainWindowViewModel.UpdateMap();
            mapModel.MapControl.Refresh();
        }
 private void InitializeEvents(MapModel mapModel)
 {
     mapModel.MapControl.MapTools.MouseCoordinate.CustomFormatted += MouseCoordinate_CustomFormatted;
     mapModel.MapControl.MouseMove += WpfMap_MouseMove;
 }