Esempio n. 1
0
 virtual protected void OnUserAvail(AvailEventArgs e)
 {
     if (UserAvailable != null)
     {
         UserAvailable(this, e);
     }
 }
 void im_UserAvailable(object sender, AvailEventArgs e)
 {
     this.BeginInvoke(new MethodInvoker(delegate
     {
         if (e.UserName == sendTo)
         {
             if (e.IsAvailable == true)
             {
                 label4.Text = "Online";
             }
         }
     }));
 }