📄 nantbuildtargettreenode.cs
字号:
// <file>
// <copyright see="prj:///doc/copyright.txt"/>
// <license see="prj:///doc/license.txt"/>
// <owner name="Matthew Ward" email="mrward@users.sourceforge.net"/>
// <version>$Revision: 915 $</version>
// </file>
using ICSharpCode.NAntAddIn;
using System;
using System.Drawing;
using System.Windows.Forms;
namespace ICSharpCode.NAntAddIn.Gui
{
/// <summary>
/// Represents a <see cref="NAntBuildTarget"/> in the
/// <see cref="NAntPadTreeView"/>.
/// </summary>
public class NAntBuildTargetTreeNode : TreeNode
{
NAntBuildTarget target;
public NAntBuildTargetTreeNode(NAntBuildTarget target)
{
if (target.IsDefault) {
this.Text = String.Concat(target.Name, " [default]");
this.ImageIndex = NAntPadTreeViewImageList.DefaultTargetImage;
this.SelectedImageIndex = NAntPadTreeViewImageList.DefaultTargetImage;
this.ForeColor = Color.Blue;
} else {
this.Text = target.Name;
this.ImageIndex = NAntPadTreeViewImageList.TargetImage;
this.SelectedImageIndex = NAntPadTreeViewImageList.TargetImage;
}
this.target = target;
}
/// <summary>
/// Gets the <see cref="NAntBuildTarget"/>
/// associated with this node.
/// </summary>
public NAntBuildTarget Target {
get {
return target;
}
}
}
}
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -