LightPlateModel.cs 699 B

123456789101112131415161718192021222324252627282930313233
  1. using System;
  2. using System.Collections.Generic;
  3. using System.Drawing;
  4. using System.Linq;
  5. using System.Text;
  6. using System.Threading.Tasks;
  7. namespace IntelligentControlForsx
  8. {
  9. public class LightPlateModel
  10. {
  11. public String LId { get; set; }
  12. public String LName { get; set; }
  13. public int LCount { get; set; }
  14. public int LRank { get; set; }
  15. public Color getBackColor()
  16. {
  17. if (LCount == 0)
  18. return Color.White;
  19. if (LRank == 4)
  20. return Color.Orange;
  21. else if (LRank == 5)
  22. return Color.Red;
  23. else
  24. return Color.Yellow;
  25. }
  26. }
  27. }