Exemple #1
0
 private void SwitchMineFlag(MyBookSelectorListDto book)
 {
     book.IsMine = !book.IsMine;
     if (book.IsMine)
     {
         this.SelectedIndexList.Add(book.Id);
     }
     else
     {
         this.SelectedIndexList.Remove(book.Id);
     }
 }
Exemple #2
0
 private void SwitchReadFlag(MyBookSelectorListDto book)
 {
     book.IsRead = !book.IsRead;
     this.SaveList.Add(new BookReadStatusModel {
         Id = book.Id, Read = book.IsRead
     });
     if (book.IsRead)
     {
         this.SelectedIndexList.Add(book.Id);
     }
     else
     {
         this.SelectedIndexList.Remove(book.Id);
     }
 }