/// <summary> /// Adds a command item to the group /// </summary> /// <param name="item">The item to add</param> public void AddCommandItem(CommandManagerItem item) { // Add the item var id = BaseObject.AddCommandItem(item.Name, item.Hint, item.ImageIndex, $"Callback({item.CallbackId})", null); // Set the Id we got item.UniqueId = id; }
/// <summary> /// Adds a command item to the group /// </summary> /// <param name="item">The item to add</param> public void AddCommandItem(CommandManagerItem item) { // Add the item var id = mBaseObject.AddCommandItem2(item.Name, item.Position, item.Hint, item.Tooltip, item.ImageIndex, $"Callback({item.CallbackId})", null, this.UserId, (int)item.ItemType); // Set the Id we got item.UniqueId = id; }