コード例 #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();
            }));
        }
コード例 #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());
 }
コード例 #3
0
ファイル: App.cs プロジェクト: arran4/Dimension
 public static void doPrivateChatReceived(Model.Commands.PrivateChatCommand c, Model.Peer z)
 {
     if (privateChatReceived != null)
     {
         privateChatReceived(c, z);
     }
 }