Beispiel #1
0
        public void UserStateChanged(string roomID, User user, UserState state)
        {
            TabPage     page = pages [roomID];
            ChatControl cht  = (ChatControl)page.Controls [0];

            cht.UserStateChanged(user, state);
        }
Beispiel #2
0
        public void AddMessage(string roomID, LiveCodingChat.Xmpp.MessageReceivedEventArgs e)
        {
            TabPage     page = pages [roomID];
            ChatControl cht  = (ChatControl)page.Controls [0];

            cht.AddMessage(e);
        }
Beispiel #3
0
 public TabPage CreateTabPage(Room room)
 {
     TabPage page = new TabPage ();
     page.Text = "Group: " + room.ID;
     ChatControl cht = new ChatControl ();
     cht.Dock = DockStyle.Fill;
     cht.Room = room;
     page.Controls.Add (cht);
     return page;
 }
Beispiel #4
0
        public frmTest()
        {
            users = new Dictionary<string, LiveCodingChat.User> ();
            random = new Random ();
            ctl = new ChatControl ();
            ctl.Dock = DockStyle.Fill;

            this.Controls.Add (ctl);

            PopulateUsers ();

            AddPseudo ();
        }
Beispiel #5
0
        public frmTest()
        {
            users    = new Dictionary <string, LiveCodingChat.User> ();
            random   = new Random();
            ctl      = new ChatControl();
            ctl.Dock = DockStyle.Fill;

            this.Controls.Add(ctl);

            PopulateUsers();

            AddPseudo();
        }
Beispiel #6
0
 public TabPage CreateTabPage(Room room)
 {
     if (pages.ContainsKey (room.ID)) {
         return pages [room.ID];
     }
     pages.Add (room.ID, new TabPage ());
     TabPage page = pages[room.ID];
     page.Text = "Group: " + room.ID;
     ChatControl cht = new ChatControl ();
     cht.Dock = DockStyle.Fill;
     cht.Room = room;
     page.Controls.Add (cht);
     return page;
 }
Beispiel #7
0
        public TabPage CreateTabPage(Room room)
        {
            if (pages.ContainsKey(room.ID))
            {
                return(pages [room.ID]);
            }
            pages.Add(room.ID, new TabPage());
            TabPage page = pages[room.ID];

            page.Text = "Group: " + room.ID;
            ChatControl cht = new ChatControl();

            cht.Dock = DockStyle.Fill;
            cht.Room = room;
            page.Controls.Add(cht);
            return(page);
        }