void System.Windows.Markup.IComponentConnector.Connect(int connectionId, object target)
        {
            switch (connectionId)
            {
            case 1:
                this.MyToolWindow = ((GitConsoleExtension.GitHostWindowControl)(target));
                return;

            case 2:
                this.RootGrid = ((System.Windows.Controls.Grid)(target));
                return;

            case 3:
                this.ConsoleHost = ((GitConsoleExtension.ConsoleHostControl)(target));
                return;

            case 4:
                this.InfoStackpanel = ((System.Windows.Controls.StackPanel)(target));
                return;

            case 5:

            #line 15 "..\..\..\ToolWindow\GitHostWindowControl.xaml"
                ((System.Windows.Controls.Button)(target)).Click += new System.Windows.RoutedEventHandler(this.Select_Mintty_clicked);

            #line default
            #line hidden
                return;
            }
            this._contentLoaded = true;
        }
        /// <summary>
        /// Initializes a new instance of the <see cref="GitHostWindow"/> class.
        /// </summary>
        public GitHostWindow() : base(null)
        {
            this.Caption = "Git Integrated Window";

            // This is the user control hosted by the tool window; Note that, even if this class implements IDisposable,
            // we are not calling Dispose on this object. This is because ToolWindowPane calls Dispose on
            // the object returned by the Content property.
            _content     = new GitConsoleExtension.GitHostWindowControl();
            this.Content = _content;
        }
Example #3
0
        /// <summary>
        /// Initializes a new instance of the <see cref="GitHostWindow"/> class.
        /// </summary>
        public GitHostWindow() : base(null)
        {
            // save references in order to make event registrations are not GCed
            _dte2                     = (DTE2)Microsoft.VisualStudio.Shell.Package.GetGlobalService(typeof(SDTE));
            _events                   = _dte2.Events;
            _events2                  = _events.SolutionEvents;
            _events2.Opened          += SolutionEvents_Opened;
            _events3                  = _events.WindowEvents;
            _events3.WindowActivated += _events3_WindowActivated;

            this.Caption = "Git Integrated Window";

            // This is the user control hosted by the tool window; Note that, even if this class implements IDisposable,
            // we are not calling Dispose on this object. This is because ToolWindowPane calls Dispose on
            // the object returned by the Content property.
            this.Content = _githost = new GitConsoleExtension.GitHostWindowControl();
        }