private ICommand Forward(XTablePortable table, ICommand command) { ForwardCommand cmd = (ForwardCommand)command; List <KeyValuePair <IData, IData> > list = table.Forward(cmd.FromKey, cmd.FromKey != null, cmd.ToKey, cmd.ToKey != null).Take(cmd.PageCount).ToList(); return(new ForwardCommand(cmd.PageCount, cmd.FromKey, cmd.ToKey, list)); }
private ICommand Forward(XTablePortable table, ICommand command) { ForwardCommand cmd = (ForwardCommand)command; List<KeyValuePair<IData, IData>> list = table.Forward(cmd.FromKey, cmd.FromKey != null, cmd.ToKey, cmd.ToKey != null).Take(cmd.PageCount).ToList(); return new ForwardCommand(cmd.PageCount, cmd.FromKey, cmd.ToKey, list); }