示例#1
0
        public TMSpecFolderMenuItem(LURootFolderType roolFolderType, TMContextMenuAction action, EventHandler click)
            : base(action, click)
        {
            _roolFolderType = roolFolderType;

            this.Text = roolFolderType.ToString();
        }
示例#2
0
        public TMContextMenuItem(TMContextMenuAction action, EventHandler click)
        {
            _action     = action;
            this.Click += click;
            switch (action)
            {
            case TMContextMenuAction.AddFile:
                this.Text = Global.Languages["Project/FileSystem/CM"]["File..."];
                break;

            case TMContextMenuAction.AddFolder:
                this.Text = Global.Languages["Project/FileSystem/CM"]["Folder"];
                break;

            case TMContextMenuAction.Rename:
                this.Text = Global.Languages["Project/FileSystem/CM"]["Rename"];
                break;

            case TMContextMenuAction.Delete:
                this.Text = Global.Languages["Project/FileSystem/CM"]["Delete"];
                break;
            }
        }