Ejemplo n.º 1
0
 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;
     }
 }
Ejemplo n.º 2
0
		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;
			}
		}