// サブウィンドウを表示する
        private void ShowSubWindow(int windowId, bool isModal = true)
        {
            WindowNotification windowNotification = new WindowNotification();

            windowNotification.WindowId = windowId;
            windowNotification.IsModal  = isModal;
            ShowWindowRequest.Raise(windowNotification);
        }
Example #2
0
        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);
            });
        }
Example #3
0
 public void ShowWindow()
 {
     ShowWindowRequest?.Invoke(this, EventArgs.Empty);
 }