mirror of
https://github.com/mRemoteNG/mRemoteNG.git
synced 2026-02-26 03:58:45 +08:00
58 lines
1.4 KiB
C#
58 lines
1.4 KiB
C#
using mRemoteNG.Tools;
|
|
using System.ComponentModel;
|
|
using System.Windows.Forms;
|
|
using mRemoteNG.Container;
|
|
|
|
|
|
namespace mRemoteNG.Tree.Root
|
|
{
|
|
[DefaultProperty("Name")]
|
|
public class RootNodeInfo : ContainerInfo
|
|
{
|
|
private string _name;
|
|
|
|
|
|
public RootNodeInfo(RootNodeType rootType)
|
|
{
|
|
_name = Language.strConnections;
|
|
Type = rootType;
|
|
}
|
|
|
|
#region Public Properties
|
|
[LocalizedAttributes.LocalizedCategory("strCategoryDisplay", 1),
|
|
Browsable(true),
|
|
LocalizedAttributes.LocalizedDefaultValue("strConnections"),
|
|
LocalizedAttributes.LocalizedDisplayName("strPropertyNameName"),
|
|
LocalizedAttributes.LocalizedDescription("strPropertyDescriptionName")]
|
|
public override string Name
|
|
{
|
|
get { return _name; }
|
|
set
|
|
{
|
|
if (_name == value)
|
|
{
|
|
return ;
|
|
}
|
|
_name = value;
|
|
if (TreeNode != null)
|
|
{
|
|
TreeNode.Name = value;
|
|
TreeNode.Text = value;
|
|
}
|
|
}
|
|
}
|
|
|
|
[LocalizedAttributes.LocalizedCategory("strCategoryDisplay", 1),
|
|
Browsable(true),
|
|
LocalizedAttributes.LocalizedDisplayName("strPasswordProtect"),
|
|
TypeConverter(typeof(Tools.MiscTools.YesNoTypeConverter))]
|
|
public new bool Password { get; set; }
|
|
|
|
[Browsable(false)]
|
|
public string PasswordString {get; set;}
|
|
|
|
[Browsable(false)]
|
|
public RootNodeType Type {get; set;}
|
|
#endregion
|
|
}
|
|
} |