123456789101112131415161718192021222324252627282930313233 |
- using System;
- using System.Collections.Generic;
- using System.Drawing;
- using System.Linq;
- using System.Text;
- using System.Threading.Tasks;
- namespace IntelligentControlForsx
- {
- public class LightPlateModel
- {
- public String LId { get; set; }
- public String LName { get; set; }
- public int LCount { get; set; }
- public int LRank { get; set; }
- public Color getBackColor()
- {
- if (LCount == 0)
- return Color.White;
- if (LRank == 4)
- return Color.Orange;
- else if (LRank == 5)
- return Color.Red;
- else
- return Color.Yellow;
- }
- }
- }
|