// サブウィンドウを表示する private void ShowSubWindow(int windowId, bool isModal = true) { WindowNotification windowNotification = new WindowNotification(); windowNotification.WindowId = windowId; windowNotification.IsModal = isModal; ShowWindowRequest.Raise(windowNotification); }
private void ShowPokemonSearchWindow(object index) { // ポケモンId取得 int partyIndex = ObjectConverter.ToInt(index); int pokemonId = _partyManegementModel.GetPokemonId(partyIndex); // 通知 PokemonSearchWindowNotification pokemonSearchWindowNotification = new PokemonSearchWindowNotification(); pokemonSearchWindowNotification.WindowId = PokemonSearchWindowNotification.POKEMON_SEARCH_WINDOW; pokemonSearchWindowNotification.IsModal = true; pokemonSearchWindowNotification.PokemonId = pokemonId; ShowWindowRequest.Raise(pokemonSearchWindowNotification, notification => { PokemonSearchWindowNotification resultNotification = (PokemonSearchWindowNotification)notification; _partyManegementModel.ChangePokemonId(partyIndex, resultNotification.PokemonId); }); }