TermModel.cs 990 B

123456789101112131415161718192021222324252627282930313233343536
  1. using DevComponents.DotNetBar.Controls;
  2. using System;
  3. using System.Collections.Generic;
  4. using System.Linq;
  5. using System.Text;
  6. using System.Threading.Tasks;
  7. using System.Windows.Forms;
  8. namespace centralController.model
  9. {
  10. class TermModel
  11. {
  12. public int id;
  13. public bool park;
  14. public bool launched;
  15. public bool groundSensor;
  16. public bool numMachine;
  17. public GroupPanel gp;
  18. public PictureBox pbNum;
  19. public PictureBox pbCar;
  20. public TermModel(GroupPanel gp, PictureBox pbNum, PictureBox pbCar)
  21. {
  22. this.gp = gp;
  23. this.pbNum = pbNum;
  24. this.pbCar = pbCar;
  25. }
  26. public void UpdateStatus(int id, bool park, bool launched, bool groundSensor, bool numMachine)
  27. {
  28. this.id = id;
  29. this.park = park;
  30. this.launched = launched;
  31. this.groundSensor = groundSensor;
  32. this.numMachine = numMachine;
  33. }
  34. }
  35. }