public IEnumerable <CommandEntry> GetCommandEntries(ForeignKeyBox foreignKeyBox) { yield return(Commands.Lookup.Bind(ExecLookup, CanExecLookup)); yield return(Commands.ClearValue.Bind(ExecClearValue, CanExecClearValue, new KeyGesture(Key.Delete))); }
private static IEnumerable <CommandEntry> GetCommandEntries(ICommandService commandService, ForeignKeyBox foreignKeyBox) { return(commandService.GetCommandEntries(foreignKeyBox)); }