Exemplo n.º 1
0
        public GitHubPane() : base(null)
        {
            Caption = "GitHub";

            BitmapImageMoniker = new Microsoft.VisualStudio.Imaging.Interop.ImageMoniker()
            {
                Guid = Guids.guidImageMoniker,
                Id   = 1
            };
            ToolBar         = new CommandID(Guids.guidGitHubToolbarCmdSet, PkgCmdIDList.idGitHubToolbar);
            ToolBarLocation = (int)VSTWT_LOCATION.VSTWT_TOP;
        }
Exemplo n.º 2
0
        public GitHubPane() : base(null)
        {
            Caption = "GitHub";

            BitmapImageMoniker = new Microsoft.VisualStudio.Imaging.Interop.ImageMoniker()
            {
                Guid = Guids.guidImageMoniker,
                Id   = 1
            };
            ToolBar         = new CommandID(Guids.guidGitHubToolbarCmdSet, PkgCmdIDList.idGitHubToolbar);
            ToolBarLocation = (int)VSTWT_LOCATION.VSTWT_TOP;
            var provider   = Services.GitHubServiceProvider;
            var uiProvider = provider.GetServiceSafe <IUIProvider>();

            View = uiProvider.GetView(Exports.UIViewType.GitHubPane);
        }
Exemplo n.º 3
0
        public GitHubPane() : base(null)
        {
            Caption = "GitHub";
            
            BitmapImageMoniker = new Microsoft.VisualStudio.Imaging.Interop.ImageMoniker()
            {
                Guid = GuidList.guidImageMoniker,
                Id = 1
            };
            ToolBar = new CommandID(GuidList.guidGitHubToolbarCmdSet, PkgCmdIDList.idGitHubToolbar);
            ToolBarLocation = (int)VSTWT_LOCATION.VSTWT_TOP;

            var factory = this.GetExportedValue<IUIFactory>();
            var d = factory.CreateViewAndViewModel(Exports.UIViewType.GitHubPane);
            // placeholder logic to load the view until the UIController is able to do it for us
            View = d.View;
            View.DataContext = d.ViewModel;
        }
Exemplo n.º 4
0
        public GitHubPane() : base(null)
        {
            Caption = "GitHub";

            BitmapImageMoniker = new Microsoft.VisualStudio.Imaging.Interop.ImageMoniker()
            {
                Guid = GuidList.guidImageMoniker,
                Id   = 1
            };
            ToolBar         = new CommandID(GuidList.guidGitHubToolbarCmdSet, PkgCmdIDList.idGitHubToolbar);
            ToolBarLocation = (int)VSTWT_LOCATION.VSTWT_TOP;

            var factory = this.GetExportedValue <IUIFactory>();
            var d       = factory.CreateViewAndViewModel(Exports.UIViewType.GitHubPane);

            // placeholder logic to load the view until the UIController is able to do it for us
            View             = d.View;
            View.DataContext = d.ViewModel;
        }
Exemplo n.º 5
0
 internal static string FromImageMoniker(ImageMoniker moniker) => DebugDisplay(moniker.Guid, moniker.Id);