public IViewAdaper <OpenFromArasView, OpenFromArasViewResult> GetOpenFromArasView(IProjectConfigurationManager configurationManager, TemplateLoader templateLoader, PackageManager packageManager, string pathToProjectConfigFile, string projectName, string projectFullName, string projectLanguage) { var viewModel = new OpenFromArasViewModel(authManager, this, configurationManager, templateLoader, packageManager, messageManager, pathToProjectConfigFile, projectName, projectFullName, projectLanguage); var view = new OpenFromArasView(); view.DataContext = viewModel; AttachToParentWindow(view); return(new OpenFromArasViewAdapter(view)); }
public IViewAdaper <OpenFromArasView, OpenFromArasViewResult> GetOpenFromArasView(IVsUIShell uiShell, IProjectConfigurationManager configurationManager, IProjectConfiguraiton projectConfiguration, TemplateLoader templateLoader, PackageManager packageManager, string pathToProjectConfigFile, string projectName, string projectFullName, string projectLanguage) { var viewModel = new OpenFromArasViewModel(authManager, this, configurationManager, projectConfiguration, templateLoader, packageManager, pathToProjectConfigFile, projectName, projectFullName, projectLanguage); var view = new OpenFromArasView(); view.DataContext = viewModel; IntPtr hwnd; uiShell.GetDialogOwnerHwnd(out hwnd); var windowInteropHelper = new WindowInteropHelper(view); windowInteropHelper.Owner = hwnd; return(new OpenFromArasViewAdapter(view)); }