コード例 #1
0
        /*
         * private void BtnExportStrollPokemon_Click(object sender, EventArgs e) {
         *  if (!main.PKME_Tabs.EditsComplete)
         *      return;
         *  PKM pk = main.PreparePKM();
         *  WinFormsUtil.SavePKMDialog(pk);
         * }
         */

        private void SelectSaveFileToolStripMenuItem_Click(object sender, EventArgs e)
        {
            if (WinFormsUtil.OpenSAVPKMDialog(main.C_SAV.SAV.PKMExtensions, out string path))
            {
                main.OpenQuick(path);
            }
        }
コード例 #2
0
        private void BtnSelectSaveFile_Click(object sender, EventArgs e)
        {
            if (WinFormsUtil.OpenSAVPKMDialog(FormMain.main.C_SAV.SAV.PKMExtensions, out string path))
            {
                FormMain.main.OpenQuick(path);
                hasSaveLoaded = true;
            }

            if (CanStartStroll())
            {
                btnStartStroll.Enabled = true;
            }
        }
コード例 #3
0
        private void BtnSelectStrollPokemon_Click(object sender, EventArgs e)
        {
            // Select the Pokemon
            if (WinFormsUtil.OpenSAVPKMDialog(FormMain.main.C_SAV.SAV.PKMExtensions, out string path))
            {
                FormMain.main.OpenQuick(path);
                hasStrollPokemonLoaded = true;
            }

            // Set the Pokemon
            FormMain.strollPokemon = FormMain.main.PKME_Tabs.pkm;

            if (CanStartStroll())
            {
                btnStartStroll.Enabled = true;
            }
        }
コード例 #4
0
        public void SetStrollPokemonToolStripMenuItem_Click(object sender, EventArgs e)
        {
            // Select the Pokemon
            if (WinFormsUtil.OpenSAVPKMDialog(main.C_SAV.SAV.PKMExtensions, out string path))
            {
                main.OpenQuick(path);
                Console.WriteLine(path);
            }

            // Set the Pokemon
            strollPokemon = main.PKME_Tabs.pkm;

            // Enable the buttons
            steps100.Enabled  = true;
            steps500.Enabled  = true;
            steps1000.Enabled = true;
        }