PKHeX.Form1.switchDaycare C# (CSharp) Method

switchDaycare() private method

private switchDaycare ( object sender, EventArgs e ) : void
sender object
e EventArgs
return void
        private void switchDaycare(object sender, EventArgs e)
        {
            if (!savegame_oras) return;
            if (DialogResult.Yes == Util.Prompt(MessageBoxButtons.YesNo, "Would you like to switch the view to the other Daycare?", String.Format("Currently viewing daycare {0}.", SaveGame.Daycare / 0x211F0 + 1)))
                // If ORAS, alter the daycare offset via toggle.
                SaveGame.Daycare = (SaveGame.Daycare == 0x21000) ? 0x211F0 : 0x21000;

            // Refresh Boxes
            setPKXBoxes();
        }
        private void mainMenuBoxDumpLoad(object sender, EventArgs e)
Form1