private void openToolStripMenuItem_Click(object sender, EventArgs e) { if (openFileDialog.ShowDialog(this) == DialogResult.OK) { string fileName = openFileDialog.FileName; ROMLoader romLoader = new ROMLoader(); game = romLoader.Load(fileName); x80 = new X80(); x80.cartridge = game.cartridge; x80.PowerUp(); catridgeInfoMenuItem.Enabled = true; } }
private void openToolStripMenuItem_Click( object sender, EventArgs e ) { if( openFileDialog.ShowDialog( this ) == DialogResult.OK ) { string fileName = openFileDialog.FileName; ROMLoader romLoader = new ROMLoader(); game = romLoader.Load( fileName ); x80 = new X80(); x80.cartridge = game.cartridge; x80.PowerUp(); catridgeInfoMenuItem.Enabled = true; } }