Ejemplo n.º 1
0
        public void articleAdded(Article article)
        {
            Console.WriteLine("New article" + article.IdArticle);
            ClientEvents events = new ClientEvents(UserEvent.newArticle, article.IdArticle);

            OnUserEvent(events);
        }
Ejemplo n.º 2
0
        public void participantAdded(int idConf)
        {
            Console.WriteLine("New user for conference " + idConf);
            ClientEvents events = new ClientEvents(UserEvent.newUser, idConf);

            OnUserEvent(events);
        }
Ejemplo n.º 3
0
        public void conferenceAdded(Conference conference)
        {
            Console.WriteLine("New conference" + conference.Id);
            ClientEvents events = new ClientEvents(UserEvent.newConference, conference.Id);

            OnUserEvent(events);
        }
Ejemplo n.º 4
0
 protected virtual void OnUserEvent(ClientEvents e)
 {
     if (updateEvent == null)
     {
         return;
     }
     updateEvent(this, e);
     Console.WriteLine("Update Event called");
 }