Пример #1
0
		private static Color GetColorLo(BatchBuilderToolControl.BuildJob.BuildJobStatus Status)
		{
			switch (Status)
			{
				case BatchBuilderToolControl.BuildJob.BuildJobStatus.Pending:
					return Colors.LightGray;
				case BatchBuilderToolControl.BuildJob.BuildJobStatus.Executing:
					return Colors.SlateGray;
				case BatchBuilderToolControl.BuildJob.BuildJobStatus.Failed:
					return Colors.Red;
				case BatchBuilderToolControl.BuildJob.BuildJobStatus.FailedToStart:
					return Colors.Red;
				case BatchBuilderToolControl.BuildJob.BuildJobStatus.Cancelled:
					return Colors.DarkOrange;
				case BatchBuilderToolControl.BuildJob.BuildJobStatus.Complete:
					return Colors.Green;
				default:
					return Colors.Blue;
			}
		}
 private static Color GetColorHi(BatchBuilderToolControl.BuildJob.BuildJobStatus Status)
 {
     switch (Status)
     {
         case BatchBuilderToolControl.BuildJob.BuildJobStatus.Pending:
             return Colors.DarkGray;
         case BatchBuilderToolControl.BuildJob.BuildJobStatus.Executing:
             return Colors.DarkGray;
         case BatchBuilderToolControl.BuildJob.BuildJobStatus.Failed:
             return Colors.LightCoral;
         case BatchBuilderToolControl.BuildJob.BuildJobStatus.FailedToStart:
             return Colors.LightCoral;
         case BatchBuilderToolControl.BuildJob.BuildJobStatus.Cancelled:
             return Colors.LightSalmon;
         case BatchBuilderToolControl.BuildJob.BuildJobStatus.Complete:
             return Colors.LightGreen;
         default:
             return Colors.LightBlue;
     }
 }