void IMenuCreationService.ProcessMenuItems(MenuKind menuKind, MenuItemDescriptionCollection items) { foreach (var s in services) { s.ProcessMenuItems(menuKind, items); } }
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); } }
void IMenuCreationService.ProcessMenuItems(MenuKind menuKind, MenuItemDescriptionCollection items) { foreach (var s in services) s.ProcessMenuItems(menuKind, items); }
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)); } }