📄 asset.cs
字号:
using System.Text;
namespace Org.InteliIM.Activities.FileSharing
{
/// <summary>
/// asset item to be shared
/// </summary>
public class Asset
{
private string name;
/// <summary>
/// name
/// </summary>
public string Name
{
get
{
if(this.name == null)
this.name = "";
return this.name;
}
set
{
this.name = value;
}
}
/// <summary>
/// password required
/// </summary>
/// <value></value>
public bool PasswordRequired
{
get
{
return (!this.Password.Equals(""));
}
}
private string password;
/// <summary>
/// the desired password
/// </summary>
/// <value></value>
public string Password
{
get
{
if (this.password == null)
this.password = "";
return this.password;
}
set
{
this.password = value;
}
}
private string description;
/// <summary>
/// description
/// </summary>
public string Description
{
get
{
if(this.description == null)
this.description = "";
return this.description;
}
set
{
this.description = value;
}
}
private string path;
/// <summary>
/// path of the associated file
/// </summary>
public string Path
{
get
{
if(this.path == null)
this.path = "";
return this.path;
}
set
{
this.path = value;
}
}
private long size = 0;
/// <summary>
/// size of the associated file
/// </summary>
public long Size
{
get
{
return this.size;
}
set
{
this.size = value;
}
}
public override string ToString()
{
StringBuilder sb = new StringBuilder();
sb.Append(this.Name);
if (this.PasswordRequired)
sb.Append("*");
return sb.ToString();
}
}
}
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -