PKHeX.Form1.openSave C# (CSharp) Method

openSave() private method

private openSave ( bool oras ) : void
oras bool
return void
        private void openSave(bool oras)
        {
            savegame_oras = oras;
            // Enable Secondary Tools
            GB_SAVtools.Enabled =
                B_JPEG.Enabled = true;

            savedited = false;
            Menu_ToggleBoxUI.Visible = false;

            B_VerifySHA.Enabled = !cybergadget;
            B_VerifyCHK.Enabled = !ramsavloaded;
            
            setBoxNames();   // Display the Box Names
            setPKXBoxes();   // Reload all of the PKX Windows
            setSAVLabel();   // Reload the label indicating current save

            // Version Exclusive Editors
            GB_SUBE.Visible = !oras;
            B_OpenSecretBase.Visible = oras;
            
            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; }

            Width = largeWidth;
            savLoaded = true;
            // Indicate audibly the save is loaded
            System.Media.SystemSounds.Beep.Play();
        }
Form1