RaUI/Source/ryControls/TreeXML/clsCbbItem.cs
2020-11-28 15:03:57 +08:00

69 lines
1.5 KiB
C#
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

using System;
using System.Collections.Generic;
using System.Text;
using System.Drawing;
namespace ryControls
{
class clsCbbItem
{
//项文本内容
private readonly string Text;
private readonly string Tag;
//项图片
public Image Img;
//构造函数
public clsCbbItem(string text,string tag, Image img)
{
Text = text;
Img = img;
Tag = tag;
}
//重写ToString函数返回项文本
public override string ToString()
{
return Text;
}
}
/// <summary>
///
/// </summary>
public class NodeItem
{
/// <summary>
/// 关键词
/// </summary>
public string Keys="";
/// <summary>
/// 密码
/// </summary>
public string Pwd="";
/// <summary>
/// 权限用户id
/// </summary>
public string AuthUser="";
/// <summary>
///
/// </summary>
/// <param name="keys"></param>
/// <param name="pwd"></param>
/// <param name="user"></param>
public NodeItem(string keys, string pwd,string user)
{
Keys = keys;
Pwd = pwd;
AuthUser = user;
}
/// <summary>
/// 返回关键词
/// </summary>
/// <returns></returns>
public override string ToString()
{
return Keys;
}
}
}