private void JumpToMarkerToolStripMenuItem_Click(object sender, EventArgs e) { if (MarkerView.AnyRowsSelected) { var index = MarkerView.SelectedRows.First(); var marker = Markers[index]; Tastudio.GoToFrame(marker.Frame); } }
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(); }