STDdata.cs 4.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167
  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 STDdata
  9. {
  10. //string s_STDId = "";
  11. string s_StrName = "";
  12. string s_Color = "#FFFFFF";
  13. string s_KeyElementList = "";
  14. string s_SubElementList = "";
  15. string s_UsingImgPropertyList = "";
  16. string s_UsingOtherPropertyList = "";
  17. string s_Expression = "";
  18. string s_Hardness = "";
  19. string s_Density = "";
  20. string s_Electrical_conductivity = "";
  21. string s_BSE = "";
  22. string s_Formula = "";
  23. string s_Element = "";
  24. string s_GroupId = "0";
  25. string s_ListNum = "";
  26. //public string STDId
  27. //{
  28. // set { s_STDId = value; }
  29. // get { return s_STDId; }
  30. //}
  31. public string Hardness
  32. {
  33. set { s_Hardness = value; }
  34. get { return s_Hardness; }
  35. }
  36. public string Density
  37. {
  38. set { s_Density = value; }
  39. get { return s_Density; }
  40. }
  41. public string Electrical_conductivity
  42. {
  43. set { s_Electrical_conductivity = value; }
  44. get { return s_Electrical_conductivity; }
  45. }
  46. //灰度
  47. public string BSE
  48. {
  49. set { s_BSE = value; }
  50. get { return s_BSE; }
  51. }
  52. public string Formula
  53. {
  54. set { s_Formula = value; }
  55. get { return s_Formula; }
  56. }
  57. public string Element
  58. {
  59. set { s_Element = value; }
  60. get { return s_Element; }
  61. }
  62. public string StrName
  63. {
  64. set { s_StrName = value; }
  65. get { return s_StrName; }
  66. }
  67. public string Color
  68. {
  69. set { s_Color = value; }
  70. get { return s_Color; }
  71. }
  72. public string KeyElementList
  73. {
  74. set { s_KeyElementList = value; }
  75. get { return s_KeyElementList; }
  76. }
  77. public string SubElementList
  78. {
  79. set { s_SubElementList = value; }
  80. get { return s_SubElementList; }
  81. }
  82. public string UsingImgPropertyList
  83. {
  84. set { s_UsingImgPropertyList = value; }
  85. get { return s_UsingImgPropertyList; }
  86. }
  87. public string UsingOtherPropertyList
  88. {
  89. set { s_UsingOtherPropertyList = value; }
  90. get { return s_UsingOtherPropertyList; }
  91. }
  92. public string Expression
  93. {
  94. set { s_Expression = value; }
  95. get { return s_Expression; }
  96. }
  97. public string GroupId
  98. {
  99. set { s_GroupId = value; }
  100. get { return s_GroupId; }
  101. }
  102. public string ListNum
  103. {
  104. set { s_ListNum = value; }
  105. get { return s_ListNum; }
  106. }
  107. public bool Equals(STDdata a_oSource)
  108. {
  109. return (Hardness == a_oSource.Hardness) &&
  110. (Density == a_oSource.Density) &&
  111. (Electrical_conductivity == a_oSource.Electrical_conductivity) &&
  112. (BSE == a_oSource.BSE) &&
  113. (Formula == a_oSource.Formula) &&
  114. (Element == a_oSource.Element) &&
  115. (StrName == a_oSource.StrName) &&
  116. (Color == a_oSource.Color) &&
  117. (KeyElementList == a_oSource.KeyElementList) &&
  118. (SubElementList == a_oSource.SubElementList) &&
  119. (UsingImgPropertyList == a_oSource.UsingImgPropertyList) &&
  120. (UsingOtherPropertyList == a_oSource.UsingOtherPropertyList) &&
  121. (Expression == a_oSource.Expression) &&
  122. (GroupId == a_oSource.GroupId) &&
  123. (ListNum == a_oSource.ListNum);
  124. }
  125. public object Clone(STDdata a_oSource)
  126. {
  127. STDdata MySTDdata = new STDdata();
  128. MySTDdata.Hardness = a_oSource.Hardness ;
  129. MySTDdata.Density = a_oSource.Density ;
  130. MySTDdata.Electrical_conductivity = a_oSource.Electrical_conductivity ;
  131. MySTDdata.BSE = a_oSource.BSE ;
  132. MySTDdata.Formula = a_oSource.Formula ;
  133. MySTDdata.Element = a_oSource.Element ;
  134. MySTDdata.StrName = a_oSource.StrName ;
  135. MySTDdata.Color = a_oSource.Color ;
  136. MySTDdata.KeyElementList = a_oSource.KeyElementList ;
  137. MySTDdata.SubElementList = a_oSource.SubElementList ;
  138. MySTDdata.UsingImgPropertyList = a_oSource.UsingImgPropertyList ;
  139. MySTDdata.UsingOtherPropertyList = a_oSource.UsingOtherPropertyList ;
  140. MySTDdata.Expression = a_oSource.Expression ;
  141. MySTDdata.GroupId = a_oSource.GroupId ;
  142. MySTDdata.ListNum = a_oSource.ListNum;
  143. return MySTDdata;
  144. }
  145. }
  146. }