private ICommand FindPrev(XTable table, ICommand command) { FindPrevCommand cmd = (FindPrevCommand)command; KeyValuePair <IData, IData>?keyValue = table.FindPrev(cmd.Key); return(new FindPrevCommand(cmd.Key, keyValue)); }
public KeyValuePair <IData, IData>?FindPrev(IData key) { var command = new FindPrevCommand(key); Execute(command); return(command.KeyValue); }