示例#1
0
 private void JumpToMarkerToolStripMenuItem_Click(object sender, EventArgs e)
 {
     if (MarkerView.AnyRowsSelected)
     {
         var index  = MarkerView.SelectedRows.First();
         var marker = Markers[index];
         Tastudio.GoToFrame(marker.Frame);
     }
 }
示例#2
0
        private void UndoToHere(int index)
        {
            int earliestFrame = int.MaxValue;

            while (Log.UndoIndex > index)
            {
                int frame = Log.Undo();
                if (frame < earliestFrame)
                {
                    earliestFrame = frame;
                }
            }

            UpdateValues();

            // potentially rewind, then update display for TAStudio
            if (_tastudio.Emulator.Frame > earliestFrame)
            {
                _tastudio.GoToFrame(earliestFrame);
            }
            _tastudio.RefreshDialog();
        }