public void ProcessMenuItems(MenuKind menuKind, MenuItemDescriptionCollection items) { if (menuKind == MenuKind.FieldList) { var index = items.IndexOf(FieldListCommands.AddCalculatedField); if (index != -1) { items.Insert(index + 1, new MenuItemDescription(items[index].Parameter, "Add Summary Field", null, AddSummaryFieldCommand)); } } }
public void ProcessMenuItems(MenuKind menuKind, MenuItemDescriptionCollection items) { if (menuKind == MenuKind.Selection) { int index = Math.Max(0, items.IndexOf(ReportCommand.Cut)); MenuItemDescription itemShow = new MenuItemDescription("Show Grid", null, showGridCommandID); MenuItemDescription itemHide = new MenuItemDescription("Hide Grid", null, hideGridCommandID); items.Insert(index++, MenuItemDescription.Separator); items.Insert(index++, itemShow); items.Insert(index++, MenuItemDescription.Separator); items.Insert(index++, itemHide); items.Insert(index++, MenuItemDescription.Separator); } }
public void ProcessMenuItems(MenuKind menuKind, MenuItemDescriptionCollection items) { if (menuKind == MenuKind.FieldList) { var index = items.IndexOf(FieldListCommands.AddCalculatedField); if (index != -1) items.Insert(index + 1, new MenuItemDescription("Add Summary Field", null, addSummaryFieldCommand)); } }