private void BuildJobCount(List <Job> jobList, JobCount jobCount) { foreach (var job in jobList) { var cn = job.CN; if (cn != null) { jobCount.Total++; } var gn = job.GN; if (gn != null) { jobCount.IncreaseGN(gn); } var g = job.G; if (g != null) { jobCount.IncreaseG(g); } if (job.RowType == Job.RowTypes.Move) { jobCount.Step++; } if (job.RowType == Job.RowTypes.Comment) { if (jobCount.Preview == null) { jobCount.Preview = job.RowString.Trim(); } } } }
private void BuildJobCount(List<Job> jobList, JobCount jobCount) { foreach (var job in jobList) { var cn = job.CN; if (cn != null) { jobCount.Total++; } var gn = job.GN; if (gn != null) { jobCount.IncreaseGN(gn); } var g = job.G; if (g != null) { jobCount.IncreaseG(g); } if (job.RowType == Job.RowTypes.Move) { jobCount.Step++; } if (job.RowType == Job.RowTypes.Comment) { if (jobCount.Preview == null) jobCount.Preview = job.RowString.Trim(); } } }