Exemple #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);
        }
Exemple #2
0
        public void AddMessage(string roomID, LiveCodingChat.Xmpp.MessageReceivedEventArgs e)
        {
            TabPage     page = pages [roomID];
            ChatControl cht  = (ChatControl)page.Controls [0];

            cht.AddMessage(e);
        }
 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;
 }
Exemple #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 ();
        }
Exemple #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();
        }
Exemple #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;
 }
Exemple #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);
        }