예제 #1
0
 public void SaveAll()
 {
     MoviesViewModel.Save();
     SerialsViewModel.Save();
     GamesViewModel.Save();
     BooksViewModel.Save();
 }
예제 #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();
     }
 }