Beispiel #1
0
        private void FormSelectInMainFormTab_SelectedIndexChanged(object sender, EventArgs e)
        {
            // デフォルト選択
            if (FormSelectInMainFormTab.SelectedIndex == 0)
            {
                var temp = new Parameter_BD.Pokemon(Pokemon_MainForm.No, 0);
                Pokemon_MainForm.Param = temp.Param;
            }
            else
            {
                Pokemon_MainForm.Param = Pokemon_MainForm.anotherform[FormSelectInMainFormTab.SelectedIndex - 1].Param;
            }
            Pokemon_MainForm.Set(Pokemon_MainForm.EffortValue, Pokemon_MainForm.IndividualValue);

            var chrctr = new Parameter_BD.Character();

            chrctr.Set(Pokemon_MainForm.Character);
            chrctr.Effect(ref Pokemon_MainForm.Statistics);

            //更新
            RealValue.Text = Pokemon_MainForm.Statistics[0].ToString();
            for (int i = 1; i < Pokemon_MainForm.Statistics.Length; i++)
            {
                RealValue.Text += "-" + Pokemon_MainForm.Statistics[i];
            }
        }
Beispiel #2
0
        private void InputForm_SelectedIndexChanged(object sender, EventArgs e)
        {
            // N/A選択時
            if (InputForm.SelectedIndex == 0)
            {
                var temp = new Parameter_BD.Pokemon(TempPokemon.No, 0);
                TempPokemon.Param = temp.Param;
            }
            else
            {
                TempPokemon.Param = TempPokemon.anotherform[InputForm.SelectedIndex - 1].Param;
            }


            Refresh();
        }