示例#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);
     }
 }
示例#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);
     }
 }