Esempio n. 1
0
        private void openToolStripMenuItem_Click(object sender, EventArgs e)
        {
            OpenFileDialog ofd = new OpenFileDialog();

            ofd.Title    = "Open GB/GBC File...";
            ofd.Filter   = "GB/GBC Files|*.gb;*.gbc|All Files|*";
            ofd.FileName = "";
            if (ofd.ShowDialog() == DialogResult.OK)
            {
                FileInfo fs = new FileInfo(ofd.FileName);
                romFile.LoadFile(ofd.FileName);
                this.Text = "GBRead - " + ofd.SafeFileName;
                UpdateMainTextBox(romFile.GetBinInfo());
                currentFileLoaded = ofd.FileName;
                labelContainer.Initialize();
                UpdateFuncBoxView();
                UpdateDataBoxView();
                UpdateVarBoxView();
                startBox.Focus();
            }
        }