public void UserStateChanged(string roomID, User user, UserState state) { TabPage page = pages [roomID]; ChatControl cht = (ChatControl)page.Controls [0]; cht.UserStateChanged(user, state); }
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; }
public frmTest() { users = new Dictionary<string, LiveCodingChat.User> (); random = new Random (); ctl = new ChatControl (); ctl.Dock = DockStyle.Fill; this.Controls.Add (ctl); PopulateUsers (); AddPseudo (); }
public frmTest() { users = new Dictionary <string, LiveCodingChat.User> (); random = new Random(); ctl = new ChatControl(); ctl.Dock = DockStyle.Fill; this.Controls.Add(ctl); PopulateUsers(); AddPseudo(); }
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; }
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); }