예제 #1
0
        private void ShowMapSelector()
        {
            _mapSelectorViewModel    = _mapSelectorViewModelFactory.CreateViewModel();
            _mapSelectorViewModel.Id = 0;
            _mapSelectorViewModel.SetCenterAndTop(App.MyPosition.MapSelectorPosition);
            WindowManager.ShowWindow(_mapSelectorViewModel);
            ((Window)_mapSelectorViewModel.View).Owner = (Window)this.View;

            /*
             *          _eventAggregator.Publish(new ShowWindowMessage
             *          {
             *              ViewModel = vm,
             *          });
             */
        }
예제 #2
0
        public void InitializeMapSelector()
        {
            _mapSelectorViewModel?.RequestClose();
            _mapSelectorViewModel = _viewModelFactory.CreateViewModel <MapSelectorViewModel>();
            _mapSelectorViewModel.ButtonVisibility = !IsAutoMode ? Visibility.Visible : Visibility.Hidden;
            _mapSelectorViewModel.Id = 0;
            _mapSelectorViewModel.SetCenterAndTop(App.AppSetting.Position.MapSelectorPosition);

            _mapSelectorViewModel.Visibility = Visibility.Hidden;
            WindowManager.ShowWindow(_mapSelectorViewModel);
            ((Window)_mapSelectorViewModel.View).Owner = (Window)View;
            _mapSelectorViewModel.View.Visibility      = Visibility.Hidden;

            /*
             *          _eventAggregator.Publish(new ShowWindowMessage
             *          {
             *              ViewModel = vm,
             *          });
             */
        }