Пример #1
0
        /// <summary>
        ///
        /// </summary>
        private void FileSystemLoaded(string path)
        {
            CloseFileSystem(false);

            openedPath = path;

            var banner = Core.MEX.ImageResource.GetBanner();

            if (banner != null)
            {
                labelGameName.Text     = banner.MetaData.LongName;
                pictureBoxBanner.Image = ImageTools.RGBAToBitmap(banner.GetBannerImageRGBA8(), 96, 32);
            }

            _fighterPage      = new FighterPage();
            _fighterPage.Dock = DockStyle.Fill;

            _musicPage      = new MusicPage();
            _musicPage.Dock = DockStyle.Fill;

            _menuPage      = new MenuPage();
            _menuPage.Dock = DockStyle.Fill;

            _stagePage      = new StagePage();
            _stagePage.Dock = DockStyle.Fill;

            _soundPage      = new SoundPage();
            _soundPage.Dock = DockStyle.Fill;

            _fighterPage.Visible = false;
            _musicPage.Visible   = false;
            _menuPage.Visible    = false;
            _stagePage.Visible   = false;
            _soundPage.Visible   = false;

            Controls.Add(_fighterPage);
            Controls.Add(_stagePage);
            Controls.Add(_menuPage);
            Controls.Add(_musicPage);
            Controls.Add(_soundPage);

            _fighterPage.BringToFront();
            _stagePage.BringToFront();
            _menuPage.BringToFront();
            _musicPage.BringToFront();
            _soundPage.BringToFront();

            CheckCodeUpdate();
        }