Ejemplo n.º 1
0
        public void ShowView(SettingsViewModel viewModel)
        {
            ViewModel = viewModel;

            this.Owner = ObjectRegistry.GetLatestCreated<MainWindow>();
            ShowDialog();
        }
Ejemplo n.º 2
0
        public void ShowView()
        {
            _view = ObjectRegistry.Create<ISettingsView>();
            _viewModel = ObjectRegistry.Create<SettingsViewModel>();
            _viewModel.Presenter = this;

            var settings = _settingsService.Load();

            _viewModel.FromSettings(settings);

            _view.ShowView(_viewModel);
        }