Exemple #1
0
        public void privateChatReceived(Model.Commands.PrivateChatCommand c, Model.Peer z)
        {
            UI.UserPanel b = new UI.UserPanel(z);
            b.Dock = DockStyle.Fill;

            this.Invoke(new Action(delegate()
            {
                Control p = ((MainForm)App.mainForm).addOrSelectPanel(z.username, b, "(!) Files for " + z.id.ToString());

                ((UI.UserPanel)p).selectChat();
                ((UI.UserPanel)p).addLine(DateTime.Now.ToShortTimeString() + " " + z.username + ": " + c.content);
                flash();
            }));
        }
Exemple #2
0
 public void selectUser(Model.Peer z)
 {
     UI.UserPanel b = new UI.UserPanel(z);
     b.Dock = DockStyle.Fill;
     ((MainForm)App.mainForm).addOrSelectPanel(z.username, b, "(!) Files for " + z.id.ToString());
 }
Exemple #3
0
 public static void doPrivateChatReceived(Model.Commands.PrivateChatCommand c, Model.Peer z)
 {
     if (privateChatReceived != null)
     {
         privateChatReceived(c, z);
     }
 }