示例#1
0
 private void MainForm_FormClosing(object sender, FormClosingEventArgs e)
 {
     if (_romPath != null)
     {
         GameBoyRevampedBLL.StopEmulation();
         GameBoyRevampedBLL.SaveGame();
     }
 }
示例#2
0
 private void buttonPlayStop_Click(object sender, EventArgs e)
 {
     if (buttonPlayStop.Text == "stopped")
     {
         GameBoyRevampedBLL.StartEmulation();
         buttonPlayStop.Image = Resources.Stop;
         buttonPlayStop.Text  = "running";
     }
     else
     {
         GameBoyRevampedBLL.StopEmulation();
         buttonPlayStop.Image = Resources.runbasic;
         buttonPlayStop.Text  = "stopped";
     }
 }