Пример #1
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();
        }
Пример #2
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;
 }
Пример #3
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();
        }
Пример #4
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 });
 }