public void Execute(object parameter) { this.execute(parameter); ViewModelService.Register <WorkBrandWindowViewModel>(); ViewService.Register <WorkBrandWindow>(); ViewService.Resolve <WorkBrandWindow>(ViewModelService.Resolve <WorkBrandWindowViewModel>()).Show(); }
protected override void OnStartup(StartupEventArgs e) { base.OnStartup(e); var currentDomain = AppDomain.CurrentDomain; var basePath = currentDomain.BaseDirectory.Substring(0, currentDomain.BaseDirectory.Length - 11); currentDomain.SetData("DataDirectory", basePath); ViewModelService.Register <MainWindowViewModel>(); ViewService.Register <MainWindow>(); ViewService.Resolve <MainWindow>(ViewModelService.Resolve <MainWindowViewModel>()).Show(); }