Adf.Core.Menu.MenuObjectExtensions.AddLast C# (CSharp) Method

AddLast() public static method

public static AddLast ( this menu, string title, Adf.Core.Tasks.ApplicationTask task, string topic = "", string tip = "" ) : MenuObject
menu this
title string
task Adf.Core.Tasks.ApplicationTask
topic string
tip string
return MenuObject
        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;
        }