⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 filetreenode.cs

📁 这是用C#编的一个简单的电子日记本软件
💻 CS
字号:
using System ;
using System.Windows.Forms ;
namespace CS_Note1
{
	/// <summary>
	/// 
	/// </summary>
	public class FileTreeNode : TreeNode
	{
		private TreeNodeStyle  _NoteStyle ;
		private string         _FileOrFolderName ;

		public FileTreeNode()
		{
			this._NoteStyle = TreeNodeStyle.File ;
			this.Text = @"???" ;
		}

		public FileTreeNode (TreeNodeStyle notestylt, string txt)
		{
			this.NoteStyle = notestylt ;
			this.Text = txt ;
			if (notestylt == TreeNodeStyle.File)
			{
				this.ImageIndex = (int)TreeImgIndex.txt ;
				this.SelectedImageIndex = (int)TreeImgIndex.txt ;
			}
			else if (notestylt == TreeNodeStyle.Folder)
			{
				this.ImageIndex = (int)TreeImgIndex.ClosedFolder ;			
			}
		}

		public TreeNodeStyle  NoteStyle
		{
			get
			{
				return this._NoteStyle ;
			}
			set
			{
				_NoteStyle = value ;
			}
		}

		public string FileOrFolderName
		{
			get
			{
				return this._FileOrFolderName ;
			}
			set
			{
				_FileOrFolderName = value ;
			}
		}
	}
}

⌨️ 快捷键说明

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