Ejemplo n.º 1
0
 private void addChatMessage(WappMessage message)
 {
     ListChat lc = new ListChat(message, this.Style);
     this.flowLayoutPanel1.Controls.Add(lc);
     while (this.flowLayoutPanel1.Controls.Count > MESSAGE_LIMIT)
     {
         this.flowLayoutPanel1.Controls.Remove(this.flowLayoutPanel1.Controls[0]);
     }
 }
Ejemplo n.º 2
0
 private void redraw()
 {
     this.flowLayoutPanel1.Controls.Clear();
     foreach (WappMessage msg in this.messages)
     {
         ListChat chat = new ListChat(msg, this.Style);
         this.flowLayoutPanel1.Controls.Add(chat);
     }
 }