CreateTabPage() public method

public CreateTabPage ( Room room ) : TabPage
room LiveCodingChat.Xmpp.Room
return System.Windows.Forms.TabPage
Ejemplo n.º 1
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);
     }
 }
Ejemplo n.º 2
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);
     }
 }