PKHeX.Form1.clickSwitchSAV C# (CSharp) Method

clickSwitchSAV() private method

private clickSwitchSAV ( object sender, EventArgs e ) : void
sender object
e EventArgs
return void
        private void clickSwitchSAV(object sender, EventArgs e)
        {
            DialogResult switchsav = Util.Prompt(MessageBoxButtons.YesNo, String.Format("Current Savefile is Save {0}.", (savindex + 1)), String.Format("Would you like to switch to Save {0}?", ((savindex + 1) % 2 + 1)));
            if (switchsav != DialogResult.Yes) return;
            savindex = (savindex + 1) % 2;
            setBoxNames();
            setPKXBoxes();
            setSAVLabel();
            int startBox = savefile[SaveGame.PCLayout + savindex * 0x7FFFF + 0x43F] & 0x1F;
            if (startBox > 30) { tabBoxMulti.SelectedIndex = 1; CB_BoxSelect.SelectedIndex = 0; }
            else { tabBoxMulti.SelectedIndex = 0; CB_BoxSelect.SelectedIndex = startBox; }
        }
Form1