예제 #1
0
        public ViewModelWizard(EnvDTE.DTE dte, EnvDTE.ProjectItem viewModel, IVsPackageInstallerServices packageInstallerServices)
        {
            InitializeComponent();

            _dte = dte;
            _viewModel = viewModel;
            _packageInstallerServices = packageInstallerServices;

            var edmxs = _dte.GetSolutionEdmx(_viewModel.ContainingProject, skipWaqsAlreadyUsed: false).ToList();
            edmx.ItemsSource = edmxs;
            edmx.SelectedItem = edmxs.FirstOrDefault();

            var views = _dte.GetSolutionXaml(_viewModel.ContainingProject).ToList();
            views.Insert(0, new DTEExtensions.FilePathes { DisplayPath = "", FullPath = null });
            view.ItemsSource = views;
            view.SelectedItem = views.FirstOrDefault();
        }
예제 #2
0
        public ViewModelWizard(EnvDTE.DTE dte, EnvDTE.ProjectItem viewModel, IVsPackageInstallerServices packageInstallerServices)
        {
            InitializeComponent();

            _dte       = dte;
            _viewModel = viewModel;
            _packageInstallerServices = packageInstallerServices;

            var edmxs = _dte.GetSolutionEdmx(_viewModel.ContainingProject, skipWaqsAlreadyUsed: false).ToList();

            edmx.ItemsSource  = edmxs;
            edmx.SelectedItem = edmxs.FirstOrDefault();

            var views = _dte.GetSolutionXaml(_viewModel.ContainingProject).ToList();

            views.Insert(0, new DTEExtensions.FilePathes {
                DisplayPath = "", FullPath = null
            });
            view.ItemsSource  = views;
            view.SelectedItem = views.FirstOrDefault();
        }