コード例 #1
0
        /// <summary>
        /// Initializes a new instance of the <see cref="BuildProgressWindow"/> class.
        /// </summary>
        public BuildProgressWindow(BuildProgressState state) : base(null)
        {
            this.Caption = Title;

            // 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 = new BuildProgressWindowControl(state);
        }
コード例 #2
0
        /// <summary>
        /// Initializes a new instance of the <see cref="BuildProgressWindowControl"/> class.
        /// </summary>
        public BuildProgressWindowControl(BuildProgressState state)
        {
            this.InitializeComponent();
            this.State = state;

            this.Events      = state.DTE.Events;
            this.BuildEvents = state.DTE.Events.BuildEvents;

            this.BuildEvents.OnBuildBegin += BuildEvents_OnBuildBegin;
            this.BuildEvents.OnBuildDone  += BuildEvents_OnBuildDone;
        }