Example #1
0
 public void Update(digint element)
 {
     this.bidiblist   = element.bidiblist;
     this.cbuslist    = element.cbuslist;
     this.dcc232list  = element.dcc232list;
     this.ddxlist     = element.ddxlist;
     this.hsi88list   = element.hsi88list;
     this.loconetlist = element.loconetlist;
     this.mcs2list    = element.mcs2list;
     this.opendcclist = element.opendcclist;
     this.rocnetlist  = element.rocnetlist;
     this.srcplist    = element.srcplist;
 }
Example #2
0
        public static digint Parse(System.Xml.Linq.XElement xml, CRocrailClient rocrailClient)
        {
            digint _digint = new digint();

            _digint.m_rocrailClient = rocrailClient;
            Definitions.Tools.ParseList <bidib>(_digint.m_bidiblist, xml, "bidib", bidib.Parse, rocrailClient);
            Definitions.Tools.ParseList <cbus>(_digint.m_cbuslist, xml, "cbus", cbus.Parse, rocrailClient);
            Definitions.Tools.ParseList <dcc232>(_digint.m_dcc232list, xml, "dcc232", dcc232.Parse, rocrailClient);
            Definitions.Tools.ParseList <ddx>(_digint.m_ddxlist, xml, "ddx", ddx.Parse, rocrailClient);
            Definitions.Tools.ParseList <hsi88>(_digint.m_hsi88list, xml, "hsi88", hsi88.Parse, rocrailClient);
            Definitions.Tools.ParseList <loconet>(_digint.m_loconetlist, xml, "loconet", loconet.Parse, rocrailClient);
            Definitions.Tools.ParseList <mcs2>(_digint.m_mcs2list, xml, "mcs2", mcs2.Parse, rocrailClient);
            Definitions.Tools.ParseList <opendcc>(_digint.m_opendcclist, xml, "opendcc", opendcc.Parse, rocrailClient);
            Definitions.Tools.ParseList <rocnet>(_digint.m_rocnetlist, xml, "rocnet", rocnet.Parse, rocrailClient);
            Definitions.Tools.ParseList <srcp>(_digint.m_srcplist, xml, "srcp", srcp.Parse, rocrailClient);
            return(_digint);
        }