예제 #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;
         }
     }
 }
예제 #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;
         }
     }
 }