private void hlImplantRun(string csvFile) { Console.CancelKeyPress += cancelHandler; entropyControl.updateStatus = writeLine; entropyControl.directProgress = directProgress; entropyControl.clearAbortFlagFunc = clearAbortFlag; entropyControl.abortRunFunc = abortRun; entropyControl.abortRunFuncMT = abortRunMT; entropyControl.updateImplantSimUIFunc = updateSimUIST; entropyControl.updateImplantSimUIMTFunc = updateSimUIMT; entropyControl.implantSimRunningUIFunc = simRunning; Console.WriteLine("Starting run for " + commonVars.getImplantSimulationSettings().getValue(EntropySettings.properties_i.nCases) + " cases."); entropyControl.swTime = 0.0; bool threaded = true; if (varianceContext.numberOfThreads == 1) { threaded = false; } entropyControl.entropyRun_implant(commonVars.getImplantSimulationSettings().getValue(EntropySettings.properties_i.nCases), csvFile, threaded); }