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 = ""; bool b_IfElementAnalysis = true; //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 IfElementAnalysis { set { b_IfElementAnalysis = value; } get { return b_IfElementAnalysis; } } 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) && (IfElementAnalysis == a_oSource.IfElementAnalysis); } 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; MySTDdata.IfElementAnalysis = a_oSource.IfElementAnalysis; return MySTDdata; } } }