Esempio n. 1
0
        void ViewModel_PropertyChanged(object sender, PropertyChangedEventArgs e)
        {
            if (e.PropertyName == MainViewModel.MapFileNamePropertyName)
            {
                bool[]         _drewLevels = this.FLayersSwitch.Select(x => x.IsChecked == true).ToArray();
                DrawingMapInfo _info       = new DrawingMapInfo(this.ViewModel.Map, _drewLevels);
                if (this.ViewModel.IsLoadImage)
                {
                    this.DrawMap(_info);
                }

                if (this.ViewModel.IsLoadStructure)
                {
                    this.svMapStructure.ViewModel = new StructureViewModel3D(this.ViewModel.Map, _drewLevels);
                }
            }

            if (e.PropertyName == MainViewModel.DataFolderPropertyName)
            {
                this.FMapFolder = Path.Combine(this.ViewModel.DataFolder, "maps");
            }
        }
Esempio n. 2
0
        private void DrawMap(object aDrewInfo)
        {
            DrawingMapInfo _drewInfo = (DrawingMapInfo)aDrewInfo;

            this.mv.DrawMapByLayer(_drewInfo.Map, _drewInfo.IsDrewLayers);
        }