Beispiel #1
0
 public void SetVideoGame(VideoGame videoGame)
 {
     _editingVideoGame = videoGame;
     if (VideoGame != null)
     {
         VideoGame.ErrorsChanged -= RaiseCanExecuteChanged;
     }
     VideoGame = new SimpleEditableVideoGame();
     VideoGame.ErrorsChanged += RaiseCanExecuteChanged;
     CopyVideoGame(videoGame, VideoGame);
 }
Beispiel #2
0
 private void UpdateVideoGame(SimpleEditableVideoGame source, VideoGame target)
 {
     target.Name              = source.Name;
     target.Description       = source.Description;
     target.GenreId           = source.GenreId;
     target.PlatformId        = source.PlatformId;
     target.MediaTypeId       = source.MediaTypeId;
     target.ImageUrl          = source.ImageUrl;
     target.DatePurchased     = source.DatePurchased;
     target.DateReleased      = source.DateReleased;
     target.Notes             = source.Notes;
     target.Rating            = source.Rating;
     target.MultiplayerRating = source.MultiplayerRating;
     target.CurrentlyPlaying  = source.CurrentlyPlaying;
     target.Completed         = source.Completed;
 }