Inheritance: System.EventArgs
Ejemplo n.º 1
0
        protected void OnNewTweet(Tweet t)
        {
            var handler = NewTweet;

            if (handler != null)
            {
                var e = new NewTweetEventArgs(t);
                handler(this, e);
            }
        }
Ejemplo n.º 2
0
 static void tweeter_NewTweet(object sender, NewTweetEventArgs e)
 {
     try
     {
         Logger.Instance.Write("Sending tweet to teletype : {0}", e.Tweet.Text);
         printer.PrintTweet(e.Tweet);
     }
     catch (Exception ex)
     {
         Logger.Instance.Write("Failed to send tweet to teletype : {0}", ex.ToString());
     }
 }
Ejemplo n.º 3
0
 protected void OnNewTweet(Tweet t)
 {
     var handler = NewTweet;
     if (handler != null)
     {
         var e = new NewTweetEventArgs(t);
         handler(this, e);
     }
 }