STDdata.cs 5.1 KB

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