Example #1
0
        public void EventsAfterOpenFile()
        {
            if (cb_ver.SelectedIndex == 0)
            {
                int cubindex = 0;

                if (isGen6)
                {
                    cubindex = 5;
                }
                else
                {
                    int narccount = narc.FileCount;
                    cubindex = utils.LoadCurrentData.FindGameIdFromCount(narccount);
                }

                b           = utils.LoadCurrentData.FindGameVersion(cubindex);
                c           = utils.LoadCurrentData.FindGameFormat(cubindex);
                gameid      = utils.LoadCurrentData.FindGameId(cubindex);
                label1.Text = utils.LoadCurrentData.FindLabelGame(cubindex);
            }
            else
            {
                b           = utils.LoadCurrentData.FindGameVersion(cb_ver.SelectedIndex);
                c           = utils.LoadCurrentData.FindGameFormat(cb_ver.SelectedIndex);
                gameid      = utils.LoadCurrentData.FindGameId(cb_ver.SelectedIndex);
                label1.Text = utils.LoadCurrentData.FindLabelGame(cb_ver.SelectedIndex);
            }

            MVGList.Load(gameid);
            mapfile.Clear();

            LB_List.Items.Clear();
            LB_List.Items.AddRange(MVGList.GetPokemonNameMVList());

            cb_pokemon.Items.Clear();
            cb_pokemon.Items.AddRange(MVGList.movelist.ToArray());

            mTab1.Enabled         = true;
            LB_List.SelectedIndex = 0;
        }
Example #2
0
        public void EventsAfterOpenFile()
        {
            toolStripLabel1.Text = Narc[0].FileCount + "";
            andiListBox1.Items.Clear();
            andiImageComboBox3.Items.Clear();

            switch (toolStripComboBox1.SelectedIndex)
            {
            case 0:
                MVGList.Load(12);
                pkmname    = MVGList.GetPokemonNameMVList();
                methodname = Database.GetCommonText(4);
                gameformat = vEnum.GameFormat.gen4;
                itemname   = Database.GetItemName(21);
                break;

            case 1:
                MVGList.Load(14);
                pkmname    = MVGList.GetPokemonNameMVList();
                methodname = Database.GetCommonText(4);
                gameformat = vEnum.GameFormat.gen4;
                itemname   = Database.GetItemName(21);
                break;

            case 2:
                MVGList.Load(17);
                pkmname    = MVGList.GetPokemonNameMVList();
                methodname = Database.GetCommonText(3);
                gameformat = vEnum.GameFormat.gen5;
                itemname   = Database.GetItemName(21);
                break;

            case 3:
                MVGList.Load(21);
                pkmname    = MVGList.GetPokemonNameMVList();
                methodname = Database.GetCommonText(3);
                gameformat = vEnum.GameFormat.gen5;
                itemname   = Database.GetItemName(21);
                break;
            }

            andiImageComboBox2.Items.Clear();
            andiImageComboBox4.Items.Clear();
            andiImageComboBox3.Items.AddRange(methodname);
            andiListBox1.Items.AddRange(pkmname);

            List <string> n = new List <string>();
            List <string> m = new List <string>();

            n.Add("");
            m.Add("");

            switch (gameformat)
            {
            case vEnum.GameFormat.gen4:
                n.AddRange(Database.GetPokemonName(4));
                m.AddRange(MVGList.GetMoveList(4));
                break;

            case vEnum.GameFormat.gen5:
                n.AddRange(Database.GetPokemonName(5));
                m.AddRange(MVGList.GetMoveList(5));
                break;
            }

            movename   = m.ToArray();
            pkmnamecom = n.ToArray();
            andiImageComboBox2.Items.AddRange(pkmnamecom);
            andiImageComboBox4.Items.AddRange(pkmnamecom);
            andiListBox1.SelectedIndex = 0;
        }