-
Notifications
You must be signed in to change notification settings - Fork 0
/
StatisticianToolWindow.cs
34 lines (32 loc) · 1.34 KB
/
StatisticianToolWindow.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 CodeLineStatistician
{
/// <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("c5e07b51-e2e8-453d-9946-0cbb71c54a43")]
public class StatisticianToolWindow : ToolWindowPane
{
/// <summary>
/// Initializes a new instance of the <see cref="StatisticianToolWindow"/> class.
/// </summary>
public StatisticianToolWindow() : base(null)
{
this.Caption = "代码行数统计窗口";
// 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 StatisticianToolWindowControl();
}
}
}