public void RemoveFromQueue(BookModel book) { Queue.Remove(book); //TODO: send remove msg }
public void MoveBackInQueue(BookModel book) { var currentIndex = Queue.IndexOf(book); ExecuteQueueReorder(currentIndex, currentIndex + 1); }
public void MoveForwardInQueue(BookModel book) { var currentIndex = Queue.IndexOf(book); ExecuteQueueReorder(currentIndex, currentIndex - 1); }
public bool CanMoveBackInQueue(BookModel book) { var lastIndex = Queue.Count - 1; return Queue.IndexOf(book) < lastIndex; }
public bool CanMoveForwardInQueue(BookModel book) { return Queue.IndexOf(book) > 0; }
public bool CanMoveBackInQueue(BookModel book) { var lastIndex = Queue.Count - 1; return(Queue.IndexOf(book) < lastIndex); }
public bool CanMoveForwardInQueue(BookModel book) { return(Queue.IndexOf(book) > 0); }