reflectionfoldernode.cs

来自「全功能c#编译器」· CS 代码 · 共 47 行

CS
47
字号
// <file>
//     <copyright see="prj:///doc/copyright.txt"/>
//     <license see="prj:///doc/license.txt"/>
//     <owner name="Georg Brandl" email="g.brandl@gmx.net"/>
//     <version value="$version"/>
// </file>

using System;
using System.Collections;
using System.IO;
using System.Drawing.Printing;
using System.Windows.Forms;
using System.Reflection;
using System.Reflection.Emit;

namespace ICSharpCode.SharpDevelop.Internal.Reflection
{
	public class ReflectionFolderNode : ReflectionNode
	{
		int openindex;
		int closeindex;
		
		public ReflectionFolderNode(string name, object attribute, ReflectionNodeType type,int openindex, int closeindex) : 
			base(name, attribute, type)
		{
			this.openindex = openindex;
			this.closeindex = closeindex;
			OnCollapse();
		}
		
		protected override void SetIcon()
		{
			OnCollapse();
		}
		
		public override void OnExpand()
		{
			ImageIndex  = SelectedImageIndex = closeindex;
		}
		
		public override void OnCollapse()
		{
			ImageIndex  = SelectedImageIndex = openindex;
		}
	}
}

⌨️ 快捷键说明

复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?