private void LoadVals(string strXml) { XmlSerializer s; StringReader sr; s = new XmlSerializer(typeof(COActivityCodeDisc)); sr = new System.IO.StringReader(strXml); oVar = new COActivityCodeDisc(); oVar = (COActivityCodeDisc)s.Deserialize(sr); sr.Close(); sr = null; s = null; }
public string GetDataString() { string tmpStr; COActivityCodeDisc o; XmlSerializer s; StringWriter sw; o = new COActivityCodeDisc(); s = new XmlSerializer(typeof(COActivityCodeDisc)); sw = new StringWriter(); base.Copy(o); s.Serialize(sw, o); tmpStr = sw.ToString(); o = null; s = null; sw = null; return(tmpStr); }
public void LoadFromObj(COActivityCodeDisc oOrg) { Code = oOrg.Code; Name = oOrg.Name; }
public void Copy(COActivityCodeDisc oNew) { oNew.Code = Code; oNew.Name = Name; }