public int calcGP(out ProcessXT critProcess) { int[] array = new int[succProcesses.Count]; for (int i = 0; i < succProcesses.Count; i++) { succProcesses[i].calcSEZ(); array[i] = succProcesses[i].saz; } int gp; calcFAZ(); calcSEZ(); if (array.Length > 0) { ArrayHandler handler = new ArrayHandler(array); int minVal = handler.MinValueOfArray; gp = minVal - fez; critProcess = (ProcessXT)succProcesses[handler.IndexOfMinValue]; } else { gp = sez - fez; critProcess = null; } return(gp); }
get => calcGP(out ProcessXT process);