// The main window calls this when a TOF cursor is moved. public void TOFCursorMoved() { if (Controller.GetController().appState == Controller.AppState.stopped) { startTOFGate = window.TOFGate.Minimum; endTOFGate = window.TOFGate.Maximum; window.SetTOFStatus("S: " + string.Format("{0:N1}", startTOFGate) + " E: " + string.Format("{0:N1}", endTOFGate) + " C: " + string.Format("{0:N1}", (endTOFGate + startTOFGate) / 2) + " L: " + string.Format("{0:N1}", endTOFGate - startTOFGate)); UpdatePMTAveragePlots(); } }