示例#1
0
        public static MenuObject Add(this MenuObject menu, string title, string tip = "")
        {
            var sub = new MenuObject(title, null, string.Empty, tip) { Parent = menu };

            menu.SubMenus.Add(sub);

            return sub;
        }
示例#2
0
        public static MenuObject AddLast(this MenuObject menu, string title, ApplicationTask task, string topic = "", string tip = "")
        {
            var sub = new MenuObject(title, task, topic, tip) { Parent = menu };

            menu.SubMenus.Add(sub);

            return menu.Parent;
        }
示例#3
0
文件: MenuObject.cs 项目: NLADP/ADF
        public static MenuObject Root()
        {
            var root = new MenuObject("Root");

            root.Parent = root;

            return root;
        }