Esempio n. 1
0
 public void SaveAll()
 {
     MoviesViewModel.Save();
     SerialsViewModel.Save();
     GamesViewModel.Save();
     BooksViewModel.Save();
 }
Esempio n. 2
0
 public void SaveUnsaved()
 {
     if (MoviesViewModel.NeedSave)
     {
         MoviesViewModel.Save();
     }
     if (SerialsViewModel.NeedSave)
     {
         SerialsViewModel.Save();
     }
     if (BooksViewModel.NeedSave)
     {
         BooksViewModel.Save();
     }
     if (GamesViewModel.NeedSave)
     {
         GamesViewModel.Save();
     }
 }