private static void currentVTRStateChangedHandler(VTR vtr, VTRState newState) { if ((newState == VTRState.ManuallyStopped) || (newState == VTRState.ManuallyStopped) || (newState == VTRState.Failure)) { currentVTR.StateChanged -= currentVTRStateChangedHandler; startNextVTR(); } }
private static void getNextUsableVTR() { foreach (VTR vtr in Program.VTRs) { if (vtr.UseInNextBatch || (vtr.State == VTRState.Reset)) { currentVTR = vtr; return; } } currentVTR = null; }
private static void vtrUseInNextBatchChanged(VTR vtr, bool newValue) { calculateGlobalState(); }
private static void vtrStateChangedHandler(VTR vtr, VTRState newState) { calculateGlobalState(); }