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. public string BSE
  47. {
  48. set { s_BSE = value; }
  49. get { return s_BSE; }
  50. }
  51. public string Formula
  52. {
  53. set { s_Formula = value; }
  54. get { return s_Formula; }
  55. }
  56. public string Element
  57. {
  58. set { s_Element = value; }
  59. get { return s_Element; }
  60. }
  61. public string StrName
  62. {
  63. set { s_StrName = value; }
  64. get { return s_StrName; }
  65. }
  66. public string Color
  67. {
  68. set { s_Color = value; }
  69. get { return s_Color; }
  70. }
  71. public string KeyElementList
  72. {
  73. set { s_KeyElementList = value; }
  74. get { return s_KeyElementList; }
  75. }
  76. public string SubElementList
  77. {
  78. set { s_SubElementList = value; }
  79. get { return s_SubElementList; }
  80. }
  81. public string UsingImgPropertyList
  82. {
  83. set { s_UsingImgPropertyList = value; }
  84. get { return s_UsingImgPropertyList; }
  85. }
  86. public string UsingOtherPropertyList
  87. {
  88. set { s_UsingOtherPropertyList = value; }
  89. get { return s_UsingOtherPropertyList; }
  90. }
  91. public string Expression
  92. {
  93. set { s_Expression = value; }
  94. get { return s_Expression; }
  95. }
  96. public string GroupId
  97. {
  98. set { s_GroupId = value; }
  99. get { return s_GroupId; }
  100. }
  101. public string ListNum
  102. {
  103. set { s_ListNum = value; }
  104. get { return s_ListNum; }
  105. }
  106. public bool Equals(STDdata a_oSource)
  107. {
  108. return (Hardness == a_oSource.Hardness) &&
  109. (Density == a_oSource.Density) &&
  110. (Electrical_conductivity == a_oSource.Electrical_conductivity) &&
  111. (BSE == a_oSource.BSE) &&
  112. (Formula == a_oSource.Formula) &&
  113. (Element == a_oSource.Element) &&
  114. (StrName == a_oSource.StrName) &&
  115. (Color == a_oSource.Color) &&
  116. (KeyElementList == a_oSource.KeyElementList) &&
  117. (SubElementList == a_oSource.SubElementList) &&
  118. (UsingImgPropertyList == a_oSource.UsingImgPropertyList) &&
  119. (UsingOtherPropertyList == a_oSource.UsingOtherPropertyList) &&
  120. (Expression == a_oSource.Expression) &&
  121. (GroupId == a_oSource.GroupId) &&
  122. (ListNum == a_oSource.ListNum);
  123. }
  124. public object Clone(STDdata a_oSource)
  125. {
  126. STDdata MySTDdata = new STDdata();
  127. MySTDdata.Hardness = a_oSource.Hardness ;
  128. MySTDdata.Density = a_oSource.Density ;
  129. MySTDdata.Electrical_conductivity = a_oSource.Electrical_conductivity ;
  130. MySTDdata.BSE = a_oSource.BSE ;
  131. MySTDdata.Formula = a_oSource.Formula ;
  132. MySTDdata.Element = a_oSource.Element ;
  133. MySTDdata.StrName = a_oSource.StrName ;
  134. MySTDdata.Color = a_oSource.Color ;
  135. MySTDdata.KeyElementList = a_oSource.KeyElementList ;
  136. MySTDdata.SubElementList = a_oSource.SubElementList ;
  137. MySTDdata.UsingImgPropertyList = a_oSource.UsingImgPropertyList ;
  138. MySTDdata.UsingOtherPropertyList = a_oSource.UsingOtherPropertyList ;
  139. MySTDdata.Expression = a_oSource.Expression ;
  140. MySTDdata.GroupId = a_oSource.GroupId ;
  141. MySTDdata.ListNum = a_oSource.ListNum;
  142. return MySTDdata;
  143. }
  144. }
  145. }