Esempio n. 1
0
 public void Login()
 {
     if (Client == null)
     {
         if (LoadXMPPData())
         {
             Client = new LiveCodingChat.Xmpp.XmppTest(this);
             Room   = new LiveCodingChat.Xmpp.Room(ID, Client);
             Client.XmppAuthenticated += (object sender, EventArgs e) => {
                 Client.Rooms.Add(Room.ID + "@chat.livecoding.tv", Room);
                 Room.JoinRoom();
                 Room.QueryInfo();
                 Room.SendPresence();
             };
         }
         else
         {
             //Session.Authenticated = false;
         }
     }
 }
Esempio n. 2
0
 public void Login()
 {
     if (Client == null) {
         if (LoadXMPPData ()) {
             Client = new LiveCodingChat.Xmpp.XmppTest (this);
             Room = new LiveCodingChat.Xmpp.Room (ID, Client);
             Client.XmppAuthenticated += (object sender, EventArgs e) => {
                 Client.Rooms.Add(Room.ID+"@chat.livecoding.tv",Room);
                 Room.JoinRoom ();
                 Room.QueryInfo ();
                 Room.SendPresence ();
             };
         } else {
             //Session.Authenticated = false;
         }
     }
 }