-
Notifications
You must be signed in to change notification settings - Fork 34
/
ConanToolWindow.cs
34 lines (32 loc) · 1.35 KB
/
ConanToolWindow.cs
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
using Microsoft.VisualStudio.Shell;
using System;
using System.Runtime.InteropServices;
namespace conan_vs_extension
{
/// <summary>
/// This class implements the tool window exposed by this package and hosts a user control.
/// </summary>
/// <remarks>
/// In Visual Studio tool windows are composed of a frame (implemented by the shell) and a pane,
/// usually implemented by the package implementer.
/// <para>
/// This class derives from the ToolWindowPane class provided from the MPF in order to use its
/// implementation of the IVsUIElementPane interface.
/// </para>
/// </remarks>
[Guid("188e5905-b7fe-4f68-a738-46e4a698caac")]
public class ConanToolWindow : ToolWindowPane
{
/// <summary>
/// Initializes a new instance of the <see cref="ConanToolWindow"/> class.
/// </summary>
public ConanToolWindow() : base(null)
{
this.Caption = "Conan C/C++ Package Manager";
// 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 ConanToolWindowControl();
}
}
}