예제 #1
0
        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;
        }
예제 #2
0
        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);
        }
예제 #3
0
 public void LoadFromObj(COActivityCodeDisc oOrg)
 {
     Code = oOrg.Code;
     Name = oOrg.Name;
 }
예제 #4
0
 public void Copy(COActivityCodeDisc oNew)
 {
     oNew.Code = Code;
     oNew.Name = Name;
 }