STDGroups.cs 1.3 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152
  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. 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. //public int id
  16. //{
  17. // set { s_id = value; }
  18. // get { return s_id; }
  19. //}
  20. public string name
  21. {
  22. set { s_name = value; }
  23. get { return s_name; }
  24. }
  25. public string color
  26. {
  27. set { s_color = value; }
  28. get { return s_color; }
  29. }
  30. public int iorder
  31. {
  32. set { i_iorder = value; }
  33. get { return i_iorder; }
  34. }
  35. public int InfoState
  36. {
  37. set { i_InfoState = value; }
  38. get { return i_InfoState; }
  39. }
  40. public object Clone(STDGroups a_oSource)
  41. {
  42. STDGroups MySTDGroups = new STDGroups();
  43. MySTDGroups.name = a_oSource.name;
  44. MySTDGroups.color = a_oSource.color;
  45. MySTDGroups.iorder = a_oSource.iorder;
  46. MySTDGroups.InfoState = a_oSource.InfoState;
  47. return MySTDGroups;
  48. }
  49. }
  50. }