public GitOperationsPage([Import(typeof (SVsServiceProvider))] IServiceProvider serviceProvider)
        {
            Title = "Git Operations";
            gitService = (IGitExt) serviceProvider.GetService(typeof (IGitExt));
            teamExplorer = (ITeamExplorer) serviceProvider.GetService(typeof (ITeamExplorer));
            gitService.PropertyChanged += OnGitServicePropertyChanged;

            var outWindow = Package.GetGlobalService(typeof (SVsOutputWindow)) as IVsOutputWindow;
            var customGuid = new Guid("A7C0163F-82E8-4D95-97C8-C62743D15DC3");
            outWindow.CreatePane(ref customGuid, "Git Operations", 1, 1);
            outWindow.GetPane(ref customGuid, out outputWindow);

            ui = new GitOperationsPageUI();
            PageContent = ui;
        }
示例#2
0
        public GitOperationsPage([Import(typeof(SVsServiceProvider))] IServiceProvider serviceProvider)
        {
            Title        = "Git Operations";
            gitService   = (IGitExt)serviceProvider.GetService(typeof(IGitExt));
            teamExplorer = (ITeamExplorer)serviceProvider.GetService(typeof(ITeamExplorer));
            gitService.PropertyChanged += OnGitServicePropertyChanged;

            var outWindow  = Package.GetGlobalService(typeof(SVsOutputWindow)) as IVsOutputWindow;
            var customGuid = new Guid("A7C0163F-82E8-4D95-97C8-C62743D15DC3");

            outWindow.CreatePane(ref customGuid, "Git Operations", 1, 1);
            outWindow.GetPane(ref customGuid, out outputWindow);


            ui          = new GitOperationsPageUI();
            PageContent = ui;
        }