protected override void ApplyNotificationToWindow(Window window, INotification notification) { PokemonSearchWindowViewModel content = (PokemonSearchWindowViewModel)window.DataContext; PokemonSearchWindowNotification pokemonSearchWindowNotification = (PokemonSearchWindowNotification)notification; content.PokemonSearchWindowModel.PokemonId = pokemonSearchWindowNotification.PokemonId; }
protected override void ApplyWindowToNotification(Window windown, INotification notification) { PokemonSearchWindowViewModel content = (PokemonSearchWindowViewModel)windown.DataContext; PokemonSearchWindowNotification pokemonSearchWindowNotification = (PokemonSearchWindowNotification)notification; if (content.PokemonSearchWindowModel.IsChangePokemonId) { pokemonSearchWindowNotification.PokemonId = content.PokemonSearchWindowModel.PokemonId; } }