Пример #1
0
 private void AppManament_UserConnected(object sender, Engine.UserInfoEventArgs e)
 {
     if (_listClients != null)
     {
         _listClients.AddUser(e.User);
     }
 }
Пример #2
0
 private void AppManament_UserRemoved(object sender, Engine.UserInfoEventArgs e)
 {
     if (_listClients != null)
     {
         _listClients.RemoveUser(e.User);
     }
 }
Пример #3
0
 private void OnUserRemoved(UserInfoEventArgs e)
 {
     if (UserRemoved != null)
     {
         var target = UserRemoved.Target as Control;
         if (target != null && target.InvokeRequired)
         {
             target.Invoke(UserRemoved, new object[] { this, e });
         }
         else
         {
             UserRemoved(this, e);
         }
     }
 }