コード例 #1
0
ファイル: CirclePanel.cs プロジェクト: arran4/Dimension
        private void userListView_MouseDoubleClick(object sender, MouseEventArgs e)
        {
            foreach (int i in userListView.SelectedIndices)
            {
                Model.Peer z = allPeersInCircle[i];
                UserPanel  b = new UserPanel(z);
                b.Dock = DockStyle.Fill;

                ((MainForm)App.mainForm).addOrSelectPanel(z.username, b, "(!) Files for " + z.id.ToString());
            }
        }
コード例 #2
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();
            }));
        }
コード例 #3
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());
 }