📄 alert.cs
字号:
using System;
namespace Org.InteliIM.Activities.Alert
{
public delegate void AlertReceivedEventHandler(object sender, AlertReceivedEventArgs e);
public class AlertReceivedEventArgs : EventArgs
{
private string from;
public string From
{
get
{
if (this.from == null)
this.from = "";
return this.from;
}
set { this.from = value; }
}
private Alert alert;
public Alert Alert
{
get { return this.alert; }
set { this.alert = value; }
}
public AlertReceivedEventArgs(string from, Alert alert)
{
this.From = from;
this.Alert = alert;
}
}
public class Alert
{
private string comment;
public string Comment
{
get
{
if (this.comment == null)
this.comment = "";
return this.comment;
}
set { this.comment = value; }
}
public Alert() : this("")
{
}
public Alert(string comment)
{
this.Comment = comment;
}
}
}
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -