Ejemplo n.º 1
0
 private void Room_UserStateChanged(LiveCodingChat.Xmpp.Room room, LiveCodingChat.User user, LiveCodingChat.Xmpp.UserState state)
 {
     if (channels.ContainsKey(room.ID))
     {
         RoomStateChanged(channels[room.ID], room, user, state);
     }
 }
Ejemplo n.º 2
0
 private void PopulateUsers()
 {
     for (int i=0;i<userIDs.Length;i++){
         LiveCodingChat.User user = new LiveCodingChat.User(userIDs[i]);
         user.Color = Color.FromArgb(255,random.Next(0,255),random.Next(0,255),random.Next(0,255));
         user.Affiliation = "none";
         this.users.Add (user.ID, user);
     }
 }
Ejemplo n.º 3
0
 private void RoomStateChanged(frmChat frm, LiveCodingChat.Xmpp.Room room, LiveCodingChat.User user, LiveCodingChat.Xmpp.UserState state)
 {
     if (frm.InvokeRequired)
     {
         frm.Invoke(new MethodInvoker(delegate() { RoomStateChanged(frm, room, user, state); }));
         return;
     }
     frm.UserStateChanged(room.ID, user, state);
 }
Ejemplo n.º 4
0
 private void PopulateUsers()
 {
     for (int i = 0; i < userIDs.Length; i++)
     {
         LiveCodingChat.User user = new LiveCodingChat.User(userIDs[i]);
         user.Color       = Color.FromArgb(255, random.Next(0, 255), random.Next(0, 255), random.Next(0, 255));
         user.Affiliation = "none";
         this.users.Add(user.ID, user);
     }
 }