Esempio n. 1
0
 private void RefreshReader()
 {
     if (this.currentEvent != null)  //prevents the program crash when book is changed having selected an event
     {
         Task.Run(() => this.Reader = readerService.GetReaderById(CurrentEvent.reader));
     }
     else
     {
         this.Reader = null;
     }
 }