void InitializeUserInterface(IUnityContainer container, IVscUIService uiService) { var resources = new SquaredInfinity.Foundation.Presentation.XamlResources(); resources.LoadAndMergeResources(); //# Initialize UI using MEF var applicationCatalog = new DirectoryCatalog(StaticSettings.VSCommandsAssembliesDirectory.FullName, "SquaredInfinity.VSCommands.*.dll"); var compositionContainer = new CompositionContainer(applicationCatalog); compositionContainer.Compose(new CompositionBatch()); //# Import Xaml Resources ResourcesManager.ImportAndLoadAllResources(compositionContainer); uiService.ShowDialog(new AttachToView()); }
void InitializeUserInterface(IUnityContainer container, IVscUIService uiService) { var resources = new SquaredInfinity.Foundation.Presentation.XamlResources(); resources.LoadAndMergeResources(); //# Initialize UI using MEF var applicationCatalog = new DirectoryCatalog(StaticSettings.VSCommandsAssembliesDirectory.FullName, "SquaredInfinity.VSCommands.*.dll"); var compositionContainer = new CompositionContainer(applicationCatalog); compositionContainer.Compose(new CompositionBatch()); //# Import Xaml Resources ResourcesManager.ImportAndLoadAllResources(compositionContainer); uiService.ShowDialog(new AttachToView()); }