Exemple #1
0
        static public MyContextMenuStrip CreateForListCheckBox(AbstractView keywordListView)
        {
            ///创建一个TreeContextMenuStrip
            MyContextMenuStrip menuStrip = new MyContextMenuStrip();

            menuStrip.Items.AddRange(new ToolStripItem[] {
                new CombinItems(keywordListView),
                new SplitItems(keywordListView),
                new EditItems(keywordListView),
                new DeleteItems(keywordListView),
                new AddItems(keywordListView),
                new ModifyFrequency(keywordListView),
                new ToolStripSeparator(),
                new CancelCheckItems(keywordListView)
            });
            return(menuStrip);
        }
Exemple #2
0
 public CombinItems(AbstractView keywordListView)
     : base(keywordListView)
 {
     this.Text = "合并";
 }
Exemple #3
0
 public AddItems(AbstractView keywordListView)
     : base(keywordListView)
 {
     this.Text = "增加";
 }
Exemple #4
0
 public SplitItems(AbstractView keywordListView)
     : base(keywordListView)
 {
     this.Text = "拆分";
 }
Exemple #5
0
 public DeleteItems(AbstractView keywordListView)
     : base(keywordListView)
 {
     this.Text = "删除";
 }
Exemple #6
0
 public BaseTmpltTreeMenuItem(AbstractView keywordListView)
     : base()
 {
     this.ListView = keywordListView;
 }
Exemple #7
0
 public ModifyFrequency(AbstractView keywordListView)
     : base(keywordListView)
 {
     this.Text = "修改权重";
 }
Exemple #8
0
 public CancelCheckItems(AbstractView keywordListView)
     : base(keywordListView)
 {
     this.Text = "取消选中项";
 }
Exemple #9
0
 public EditItems(AbstractView keywordListView)
     : base(keywordListView)
 {
     this.Text = "编辑";
 }