Ejemplo n.º 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];
            }
        }
Ejemplo n.º 2
0
        public MainForm()
        {
            InitializeComponent();
            Names = new Tab1_autoConp.Names();
            Items = new Parameter_BD.ItemDB.Item();
            ch    = new Parameter_BD.Character();

            FormSelectInMainFormTab.DropDownStyle = ComboBoxStyle.DropDownList;
            InputForm.DropDownStyle = ComboBoxStyle.DropDownList;
        }
Ejemplo n.º 3
0
        /// <summary>
        /// ここですべてのデータを読み込む
        /// </summary>
        /// <param name="sender"></param>
        /// <param name="e"></param>
        private void Selectform_FormClosed(object sender, FormClosedEventArgs e)
        {
            if (selectform.SelectRow < 0)
            {
                selectform.Dispose();
                selectform = null;
                return;
            }

            notUse_item.Checked = true;
            Pokemon_MainForm    = new Parameter_BD.Derivation.CompletionPokemon(selectform.SelectRow + 1);
            selectform.Dispose();
            selectform            = null;
            ShowImg.ImageLocation = (Parameter_BD.PreSet.DBLocation + "pokeimage/" + string.Format("{0:000}", Pokemon_MainForm.No) + "_0" + ".png");
            NameLabel.Text        = Pokemon_MainForm.Name;
            Char_MainForm.Text    = Pokemon_MainForm.Character;
            IndividualValue.Text  = Pokemon_MainForm.IndividualValue[0].ToString();
            foreach (var item in Pokemon_MainForm.IndividualValue)
            {
                IndividualValue.Text += "-" + item;
            }
            EffortValue.Text = Pokemon_MainForm.EffortValue[0].ToString();
            foreach (var item in Pokemon_MainForm.EffortValue)
            {
                EffortValue.Text += "-" + item;
            }
            //ワザの入力
            var temp = new string[4];

            for (int i = 0; i < Pokemon_MainForm.Weapon.Length; i++)
            {
                Pokemon_MainForm.Weapon[i] = Pokemon_MainForm.Weapon[i].Replace("\n", "");
            }
            Weapon1.Text = Pokemon_MainForm.Weapon[0];
            Weapon2.Text = Pokemon_MainForm.Weapon[1];
            Weapon3.Text = Pokemon_MainForm.Weapon[2];
            Weapon4.Text = Pokemon_MainForm.Weapon[3];
            Tokusei.Text = Pokemon_MainForm.Ability;

            ItemLabel.Text = Pokemon_MainForm.Item;

            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];
            }

            //フォルムの選択処理
            FormSelectInMainFormTab.Items.Clear();
            FormSelectInMainFormTab.Text = "";
            if (Pokemon_MainForm.ChangeAble)
            {
                FormSelectInMainFormTab.Items.Add("デフォルト");
                FormSelectInMainFormTab.Text = "デフォルト";

                FormSelectInMainFormTab.Enabled = true;
                foreach (var item in Pokemon_MainForm.anotherform)
                {
                    FormSelectInMainFormTab.Items.Add(item.Name);
                }
            }
            else
            {
                FormSelectInMainFormTab.Items.Add("N/A");
                FormSelectInMainFormTab.Text    = "N/A";
                FormSelectInMainFormTab.Enabled = false;
            }
        }