Esempio n. 1
0
 protected virtual void OnNewMail2(NewMailEventArgs e)
 {
     if (newMail != null)
     {
         newMail(this, e);
     }
 }
Esempio n. 2
0
        protected virtual void OnNewMail(NewMailEventArgs e)
        {
            EventHandler <NewMailEventArgs> temp = Volatile.Read(ref newMail);

            if (temp != null)
            {
                temp(this, e);
            }
        }
Esempio n. 3
0
 private void FaxMsg(object sender, NewMailEventArgs e)
 {
     Console.WriteLine("Faxing mail message:");
     Console.WriteLine(" From={0}, To={1}, Subject={2}",
                       e.From, e.To, e.Subject);
 }
Esempio n. 4
0
        public void SimulateNeMail(string from, string to, string subject)
        {   //create object for keep information,to be sent to the recipients of the notification
            NewMailEventArgs e = new NewMailEventArgs(from, to, subject);

            OnNewMail(e);
        }