Ejemplo n.º 1
0
        public void Add(Command command, int order = -1)
        {
            var item = command.CreateMenuItem(parent.Generator);

            item.Order = order;
            Add(item);
        }
Ejemplo n.º 2
0
        /// <summary>
        /// Add the specified command with the specified order.
        /// </summary>
        /// <param name="command">Command to add.</param>
        /// <param name="order">Order of the command to add.</param>
        public MenuItem Add(Command command, int order = 0)
        {
            var item = command.CreateMenuItem();

            item.Order = order;
            Add(item);
            return(item);
        }