public void SetVideoGame(VideoGame videoGame) { _editingVideoGame = videoGame; if (VideoGame != null) { VideoGame.ErrorsChanged -= RaiseCanExecuteChanged; } VideoGame = new SimpleEditableVideoGame(); VideoGame.ErrorsChanged += RaiseCanExecuteChanged; CopyVideoGame(videoGame, VideoGame); }
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; }