123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167 |
- using System;
- using System.Collections.Generic;
- using System.Linq;
- using System.Text;
- using System.Threading.Tasks;
- namespace OTSPartA_STDEditor
- {
- public class STDdata
- {
- //string s_STDId = "";
- string s_StrName = "";
- string s_Color = "#FFFFFF";
- string s_KeyElementList = "";
- string s_SubElementList = "";
- string s_UsingImgPropertyList = "";
- string s_UsingOtherPropertyList = "";
- string s_Expression = "";
- string s_Hardness = "";
- string s_Density = "";
- string s_Electrical_conductivity = "";
- string s_BSE = "";
- string s_Formula = "";
- string s_Element = "";
- string s_GroupId = "0";
- string s_ListNum = "";
- //public string STDId
- //{
- // set { s_STDId = value; }
- // get { return s_STDId; }
- //}
- public string Hardness
- {
- set { s_Hardness = value; }
- get { return s_Hardness; }
- }
- public string Density
- {
- set { s_Density = value; }
- get { return s_Density; }
- }
- public string Electrical_conductivity
- {
- set { s_Electrical_conductivity = value; }
- get { return s_Electrical_conductivity; }
- }
- //灰度
- public string BSE
- {
- set { s_BSE = value; }
- get { return s_BSE; }
- }
- public string Formula
- {
- set { s_Formula = value; }
- get { return s_Formula; }
- }
- public string Element
- {
- set { s_Element = value; }
- get { return s_Element; }
- }
- public string StrName
- {
- set { s_StrName = value; }
- get { return s_StrName; }
- }
- public string Color
- {
- set { s_Color = value; }
- get { return s_Color; }
- }
- public string KeyElementList
- {
- set { s_KeyElementList = value; }
- get { return s_KeyElementList; }
- }
- public string SubElementList
- {
- set { s_SubElementList = value; }
- get { return s_SubElementList; }
- }
- public string UsingImgPropertyList
- {
- set { s_UsingImgPropertyList = value; }
- get { return s_UsingImgPropertyList; }
- }
- public string UsingOtherPropertyList
- {
- set { s_UsingOtherPropertyList = value; }
- get { return s_UsingOtherPropertyList; }
- }
- public string Expression
- {
- set { s_Expression = value; }
- get { return s_Expression; }
- }
- public string GroupId
- {
- set { s_GroupId = value; }
- get { return s_GroupId; }
- }
- public string ListNum
- {
- set { s_ListNum = value; }
- get { return s_ListNum; }
- }
- public bool Equals(STDdata a_oSource)
- {
- return (Hardness == a_oSource.Hardness) &&
- (Density == a_oSource.Density) &&
- (Electrical_conductivity == a_oSource.Electrical_conductivity) &&
- (BSE == a_oSource.BSE) &&
- (Formula == a_oSource.Formula) &&
- (Element == a_oSource.Element) &&
- (StrName == a_oSource.StrName) &&
- (Color == a_oSource.Color) &&
- (KeyElementList == a_oSource.KeyElementList) &&
- (SubElementList == a_oSource.SubElementList) &&
- (UsingImgPropertyList == a_oSource.UsingImgPropertyList) &&
- (UsingOtherPropertyList == a_oSource.UsingOtherPropertyList) &&
- (Expression == a_oSource.Expression) &&
- (GroupId == a_oSource.GroupId) &&
- (ListNum == a_oSource.ListNum);
- }
- public object Clone(STDdata a_oSource)
- {
- STDdata MySTDdata = new STDdata();
- MySTDdata.Hardness = a_oSource.Hardness ;
- MySTDdata.Density = a_oSource.Density ;
- MySTDdata.Electrical_conductivity = a_oSource.Electrical_conductivity ;
- MySTDdata.BSE = a_oSource.BSE ;
- MySTDdata.Formula = a_oSource.Formula ;
- MySTDdata.Element = a_oSource.Element ;
- MySTDdata.StrName = a_oSource.StrName ;
- MySTDdata.Color = a_oSource.Color ;
- MySTDdata.KeyElementList = a_oSource.KeyElementList ;
- MySTDdata.SubElementList = a_oSource.SubElementList ;
- MySTDdata.UsingImgPropertyList = a_oSource.UsingImgPropertyList ;
- MySTDdata.UsingOtherPropertyList = a_oSource.UsingOtherPropertyList ;
- MySTDdata.Expression = a_oSource.Expression ;
- MySTDdata.GroupId = a_oSource.GroupId ;
- MySTDdata.ListNum = a_oSource.ListNum;
- return MySTDdata;
- }
- }
- }
|