Example #1
0
 private void loadToolStripMenuItem_Click(object sender, EventArgs e)
 {
     //Mame.exit_pending = true;
     //if (TrackInfo.CurTrack != null)
     {
         //CPS1.StopDelegate(RomInfo.IStop);
     }
     if (Machine.bRom)
     {
         UI.cpurun();
         Mame.mame_pause(true);
     }
     //bRunning = false;
     //pState = PlayState.PLAY_STOPPED;
     //OnPlaying(pState);
     //OnRunning(false);
     foreach (ListViewItem lvi in loadform.listView1.Items)
     {
         if (sSelect == lvi.SubItems[2].Text)
         {
             loadform.listView1.FocusedItem = lvi;
             lvi.Selected = true;
             loadform.listView1.TopItem = lvi;
             break;
         }
     }
     //StopTimer();
     loadform.ShowDialog();
 }
Example #2
0
 private void loadToolStripMenuItem_Click(object sender, EventArgs e)
 {
     if (Machine.bRom)
     {
         UI.cpurun();
         Mame.mame_pause(true);
     }
     foreach (ListViewItem lvi in loadform.listView1.Items)
     {
         if (sSelect == lvi.SubItems[2].Text)
         {
             loadform.listView1.FocusedItem = lvi;
             lvi.Selected = true;
             loadform.listView1.TopItem = lvi;
             break;
         }
     }
     loadform.ShowDialog();
 }