public void SelectTop() { var first = this.Entries.FirstOrDefault(); if (first!=null) { Selected = first; } }
public void SelectNextEntry(Func<LogEntryViewModel, bool> accept) { var nextitem = this.Entries.Next(CurrentIndex,accept); if (nextitem != null) { Selected = nextitem; } }
public void SelectPreviousEntry(Func<LogEntryViewModel, bool> accept) { var previous = this.Entries.Previous(CurrentIndex, accept); if (previous != null) { Selected = previous; } }
public void SelectBottom() { var last = this.Entries.LastOrDefault(); if (last != null) { Selected = last; } }