STDGroups.cs 1.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960
  1. using System;
  2. using System.Collections.Generic;
  3. using System.Linq;
  4. using System.Text;
  5. using System.Threading.Tasks;
  6. namespace OTSPartA_STDEditor
  7. {
  8. public class STDGroups
  9. {
  10. int s_id = 0;
  11. string s_name = "";
  12. string s_color = "#FFFFFF";
  13. int i_iorder = 0;
  14. int i_InfoState = 1;
  15. List<STDdata> _ContainSTD=new List<STDdata>();
  16. public int id
  17. {
  18. set { s_id = value; }
  19. get { return s_id; }
  20. }
  21. public string name
  22. {
  23. set { s_name = value; }
  24. get { return s_name; }
  25. }
  26. public string color
  27. {
  28. set { s_color = value; }
  29. get { return s_color; }
  30. }
  31. public int iorder
  32. {
  33. set { i_iorder = value; }
  34. get { return i_iorder; }
  35. }
  36. public int InfoState
  37. {
  38. set { i_InfoState = value; }
  39. get { return i_InfoState; }
  40. }
  41. public List<STDdata> ContainSTD
  42. {
  43. set { _ContainSTD = value;}
  44. get { return _ContainSTD;}
  45. }
  46. public object Clone(STDGroups a_oSource)
  47. {
  48. STDGroups MySTDGroups = new STDGroups();
  49. MySTDGroups.id=a_oSource.id;
  50. MySTDGroups.name = a_oSource.name;
  51. MySTDGroups.color = a_oSource.color;
  52. MySTDGroups.iorder = a_oSource.iorder;
  53. MySTDGroups.InfoState = a_oSource.InfoState;
  54. return MySTDGroups;
  55. }
  56. }
  57. }