Esempio n. 1
0
        public FindFriendForm(XmppClientConnection con)
        {
            InitializeComponent();

            m_XmppCon = con;

            friend_qcm = new QQContextMenu();
            QQToolStripMenuItem item1 = new QQToolStripMenuItem();
            item1.Text = "加为联系人";
            item1.Click += new EventHandler(item1_Click);
            QQToolStripMenuItem item2 = new QQToolStripMenuItem();
            item2.Text = "名片";
            item2.Click += new EventHandler(item2_Click);
            friend_qcm.Items.AddRange(new ToolStripItem[] { item1, item2 });
            if (!ISSelect)
                this.ContextMenuStrip = friend_qcm;
            // Fill combo with search services
            //foreach (Jid jid in Util.Services.Search)
            //{
            //    //cboServices.Items.Add(jid.Bare);
            //}
        }
Esempio n. 2
0
        private void InitGroupMenu()
        {
            QQToolStripMenuItem qtsm_open_close = new QQToolStripMenuItem();
            qtsm_open_close.Text = "展开/收缩";
            qtsm_open_close.MouseDown += new MouseEventHandler(qtsm_open_close_MouseDown);

            QQToolStripSeparator atss1 = new QQToolStripSeparator();

            QQToolStripMenuItem qtsm_rechristen = new QQToolStripMenuItem();
            qtsm_rechristen.MouseDown += new MouseEventHandler(qtsm_rechristen_MouseDown);
            qtsm_rechristen.Text = "重命名";

            QQToolStripMenuItem qtsm_deleteGroup = new QQToolStripMenuItem();
            qtsm_deleteGroup.MouseDown += new MouseEventHandler(qtsm_deleteGroup_MouseDown);
            qtsm_deleteGroup.Text = "删除组";

            group_qcm = new QQContextMenu();
            group_qcm.Items.AddRange(new ToolStripItem[] { qtsm_open_close, atss1, qtsm_rechristen, qtsm_deleteGroup });
            System.GC.Collect();
        }
Esempio n. 3
0
        private void InitFriendMenu()
        {
            QQToolStripMenuItem qtsm_send = new QQToolStripMenuItem();
            qtsm_send.Text = "发送消息";
            qtsm_send.MouseDown += new MouseEventHandler(qtsm_send_MouseDown);

            QQToolStripMenuItem qtsm_info = new QQToolStripMenuItem();
            qtsm_info.Text = "查看资料";
            qtsm_info.MouseDown += new MouseEventHandler(qtsm_info_MouseDown);

            QQToolStripMenuItem qtsm_move = new QQToolStripMenuItem();
            qtsm_move.MouseDown += new MouseEventHandler(qtsm_move_MouseDown);
            qtsm_move.Text = "移动到";

            //QQToolStripMenuItem qtsm_remark = new QQToolStripMenuItem();
            //qtsm_remark.MouseDown += new MouseEventHandler(item4_MouseDown);
            //qtsm_remark.Text = "备注";

            QQToolStripMenuItem qtsm_delete = new QQToolStripMenuItem();
            qtsm_delete.Text = "删除联系人";
            qtsm_delete.MouseDown += new MouseEventHandler(qtsm_delete_MouseDown);

            friend_qcm = new QQContextMenu();
            friend_qcm.Items.AddRange(new ToolStripItem[] {qtsm_send, qtsm_info, qtsm_move, qtsm_delete });
        }
Esempio n. 4
0
        private void InitControlMenu()
        {
            //QQToolStripMenuItem pm1 = new QQToolStripMenuItem();
            //pm1.Text = "显示陌生人";
            //QQToolStripMenuItem pm2 = new QQToolStripMenuItem();
            //pm2.Text = "显示黑名单";

            QQToolStripMenuItem qtsm_Bigitem = new QQToolStripMenuItem();
            qtsm_Bigitem.Name = "qtsm_Bigitem";
            qtsm_Bigitem.Text = "大头像";
            qtsm_Bigitem.MouseDown += new MouseEventHandler(qtsm_Bigitem_MouseDown);

            QQToolStripMenuItem qtsm_Smallitem = new QQToolStripMenuItem();
            qtsm_Smallitem.Name="qtsm_Smallitem";
            qtsm_Smallitem.Text = "小头像";

            qtsm_Smallitem.MouseDown += new MouseEventHandler(qtsm_Smallitem_MouseDown);

            QQToolStripSeparator atss1 = new QQToolStripSeparator();
            QQToolStripMenuItem qtsm_addgroup = new QQToolStripMenuItem();
            qtsm_addgroup.Text = "添加组";
            qtsm_addgroup.MouseDown += new MouseEventHandler(qtsm_addgroup_MouseDown);
            control_qcm = new QQContextMenu();
            control_qcm.Items.AddRange(new ToolStripItem[] { qtsm_Bigitem, qtsm_Smallitem,atss1, qtsm_addgroup });
            this.ContextMenuStrip = control_qcm;
            control_qcm.Paint += new PaintEventHandler(control_qcm_Paint);
            System.GC.Collect();
        }
Esempio n. 5
0
 private void InitPanelMenu()
 {
     QQToolStripMenuItem pm1 = new QQToolStripMenuItem();
     pm1.Text = "显示陌生人";
     //pm1.Click += new EventHandler(qm1_Click);
     QQToolStripMenuItem pm2 = new QQToolStripMenuItem();
     pm2.Text = "显示黑名单";
     //pm2.Click += new EventHandler(qm2_Click);
     QQToolStripSeparator qs = new QQToolStripSeparator();
     QQToolStripMenuItem pm3 = new QQToolStripMenuItem();
     pm3.Text = "添加组";
     pm3.Click += new EventHandler(gm_4_Click);
     qcm1 = new QQContextMenu();
     qcm1.Items.AddRange(new ToolStripItem[] { pm1, pm2, qs, pm3 });
     this.ContextMenuStrip = qcm1;
 }
Esempio n. 6
0
 private void InitGroupMenu()
 {
     QQToolStripMenuItem qm1 = new QQToolStripMenuItem();
     qm1.Text = "展开/收缩";
     qm1.Click += new EventHandler(gm_1_Click);
     QQToolStripMenuItem qm4 = new QQToolStripMenuItem();
     qm4.Text = "添加组";
     qm4.Click += new EventHandler(gm_4_Click);
     QQToolStripSeparator qs = new QQToolStripSeparator();
     QQToolStripMenuItem qm2 = new QQToolStripMenuItem();
     qm2.Text = "重命名";
     qm2.Click += new EventHandler(gm_2_Click);
     QQToolStripMenuItem qm3 = new QQToolStripMenuItem();
     qm3.Text = "删除组";
     qm3.Click += new EventHandler(gm_3_Click);
     qcm = new QQContextMenu();
     qcm.Items.AddRange(new ToolStripItem[] { qm1, qm4, qs, qm2, qm3 });
 }
Esempio n. 7
0
 private void InitFriendMenu()
 {
     QQToolStripMenuItem item1 = new QQToolStripMenuItem();
     item1.Text = "发送消息";
     item1.Click += new EventHandler(item1_Click);
     QQToolStripMenuItem item2 = new QQToolStripMenuItem();
     item2.Text = "查看资料";
     item2.Click+=new EventHandler(item2_Click);
     QQToolStripMenuItem item3 = new QQToolStripMenuItem();
     item3.Text = "移动到";
     item3.Click+=new EventHandler(item3_Click);
     //QQToolStripMenuItem item4 = new QQToolStripMenuItem();
     //item4.Text = "我的好友";
     QQToolStripMenuItem item5 = new QQToolStripMenuItem();
     item5.Text = "加入到陌生人";
     item5.Click+=new EventHandler(item5_Click);
     QQToolStripMenuItem item6 = new QQToolStripMenuItem();
     item6.Text = "移到黑名单";
     item6.Click+=new EventHandler(item6_Click);
     qcm2 = new QQContextMenu();
     qcm2.Items.AddRange(new ToolStripItem[] { item1, item2, item3, item5, item6 });
 }
        private void InitFriendMenu()
        {
            QQToolStripMenuItem item2 = new QQToolStripMenuItem();
            item2.Text = "查看资料";
            item2.MouseDown += new MouseEventHandler(item2_MouseDown);

            group_friendcm = new QQContextMenu();
            group_friendcm.Items.AddRange(new ToolStripItem[] { item2 });
            System.GC.Collect();
        }