Пример #1
0
        public void ShowAllLocations()
        {
            MultiLocationViewModel viewModel = this.ViewModels.FirstOrDefault(vm => vm is MultiLocationViewModel) as MultiLocationViewModel;

            if (viewModel == null)
            {
                viewModel = new MultiLocationViewModel(repositorys);
                viewModel.RequestClose += this.OnWorkspaceRequestClose;
                this.ViewModels.Add(viewModel);
            }

            this.ActivateViewModel(viewModel);
        }
Пример #2
0
        /// <summary>
        /// Shows all locations.
        /// </summary>
        public void ShowAllLocations()
        {
            MultiLocationViewModel viewModel = this.ViewModels.FirstOrDefault(vm => vm is MultiLocationViewModel) as MultiLocationViewModel;

            if (viewModel == null)
            {
                MultiLocationViewModel mlvm = new MultiLocationViewModel(this.repo);
                mlvm.RequestClose += this.OnWorkspaceRequestClose;
                this.ViewModels.Add(mlvm);
            }

            this.ActivateViewModel(viewModel);
        }