示例#1
0
 private void OnNewMail(NewMailEventInfo eventInfo)
 {
     if (NewMail != null)
         NewMail(this, eventInfo);
 }
示例#2
0
 public void SimulateNewMail(string mailFrom, string mailTo, string subject)
 {
     var newMailEventInfo = new NewMailEventInfo(mailFrom, mailTo, subject);
     OnNewMail(newMailEventInfo);
 }