alert.cs
来自「该源代码用 C# 写成」· CS 代码 · 共 63 行
CS
63 行
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 + =
减小字号Ctrl + -
显示快捷键?