コード例 #1
0
 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();
             }
         }
     }
 }
コード例 #2
0
ファイル: Job.cs プロジェクト: mcm811/Hi5Controller.CSharp
		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();
				}
			}
		}