예제 #1
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);
 }
예제 #2
0
 private void RoomMessage(frmChat frm,string roomID,LiveCodingChat.Xmpp.MessageReceivedEventArgs e)
 {
     if (frm.InvokeRequired)
     {
         frm.Invoke(new MethodInvoker(delegate() { RoomMessage(frm,roomID, e); }));
         return;
     }
     frm.Activate();
     frm.AddMessage(roomID,e);
 }
예제 #3
0
 private void RoomMessage(frmChat frm, string roomID, LiveCodingChat.Xmpp.MessageReceivedEventArgs e)
 {
     if (frm.InvokeRequired)
     {
         frm.Invoke(new MethodInvoker(delegate() { RoomMessage(frm, roomID, e); }));
         return;
     }
     frm.Activate();
     frm.AddMessage(roomID, e);
 }
예제 #4
0
 private void CreateForm()
 {
     if (this.InvokeRequired) {
         this.Invoke (new MethodInvoker(delegate() {
             CreateForm();
         }));
     }else{
         frmChat frm = new frmChat ();
         frm.AddTabPage (frm.CreateTabPage (room.Room));
         frm.Show ();
         chatForms.Add (room.Room.ID, frm);
     }
 }
예제 #5
0
 private void CreateForm()
 {
     if (this.InvokeRequired)
     {
         this.Invoke(new MethodInvoker(delegate() {
             CreateForm();
         }));
     }
     else
     {
         if (chatForms.Count == 0)
         {
             chatForms.Add(new frmChat());
         }
         frmChat frm = chatForms [0];
         frm.AddTabPage(frm.CreateTabPage(room.Room));
         frm.Show();
         frm.Activate();
         channels.Add(room.Room.ID, frm);
     }
 }
예제 #6
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);
 }