private double GetFirstTimeOfCoincidence(List <int> linesNumber) { double firstTimeCoincidence = 0; try { List <int> concurrent = new List <int>(); for (int i = 0; i < linesNumber.Count; i++) { if (linesNumber[i] != 0) { concurrent = GetConcurrentLinesInATime(i, linesNumber[i], linesNumber); break; } } firstTimeCoincidence = GeneralFunctions.CalculateMCM(concurrent.ToArray()); } catch (Exception ex) { Debug.WriteLine(ex.Message); } return(firstTimeCoincidence); }