STDdata.cs 5.5 KB

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