public static ctrl Parse(System.Xml.Linq.XElement xml, CRocrailClient rocrailClient) { ctrl _ctrl = new ctrl(); _ctrl.m_rocrailClient = rocrailClient; _ctrl.m_actiontimer60 = (bool?)xml.Attribute("actiontimer60"); _ctrl.m_allowzerothrottleid = (bool?)xml.Attribute("allowzerothrottleid"); _ctrl.m_blockinitpause = (int?)xml.Attribute("blockinitpause"); _ctrl.m_closenoevents = (bool?)xml.Attribute("closenoevents"); _ctrl.m_closeonghost = (bool?)xml.Attribute("closeonghost"); _ctrl.m_createguestonbidi = (bool?)xml.Attribute("createguestonbidi"); _ctrl.m_defaspect = (string)xml.Attribute("defaspect"); _ctrl.m_disablerouteVreduce = (bool?)xml.Attribute("disablerouteVreduce"); _ctrl.m_disablesteal = (bool?)xml.Attribute("disablesteal"); _ctrl.m_ebreakatghost = (bool?)xml.Attribute("ebreakatghost"); _ctrl.m_ebreakforceunlock = (bool?)xml.Attribute("ebreakforceunlock"); _ctrl.m_enableanalyzer = (bool?)xml.Attribute("enableanalyzer"); _ctrl.m_enableswfb = (bool?)xml.Attribute("enableswfb"); _ctrl.m_eventtimeout = (int?)xml.Attribute("eventtimeout"); _ctrl.m_greenaspect = (bool?)xml.Attribute("greenaspect"); _ctrl.m_ignevt = (int?)xml.Attribute("ignevt"); _ctrl.m_initfieldpause = (int?)xml.Attribute("initfieldpause"); _ctrl.m_initfieldpower = (bool?)xml.Attribute("initfieldpower"); _ctrl.m_keepghost = (bool?)xml.Attribute("keepghost"); _ctrl.m_loccnfg = (bool?)xml.Attribute("loccnfg"); _ctrl.m_locostartgap = (int?)xml.Attribute("locostartgap"); _ctrl.m_minbklc = (int?)xml.Attribute("minbklc"); _ctrl.m_poweroffatghost = (bool?)xml.Attribute("poweroffatghost"); _ctrl.m_poweroffatreset = (bool?)xml.Attribute("poweroffatreset"); _ctrl.m_poweroffonidentmismatch = (bool?)xml.Attribute("poweroffonidentmismatch"); _ctrl.m_releaseonidle = (bool?)xml.Attribute("releaseonidle"); _ctrl.m_restoreschedule = (bool?)xml.Attribute("restoreschedule"); _ctrl.m_routeswtime = (int?)xml.Attribute("routeswtime"); _ctrl.m_savepostime = (int?)xml.Attribute("savepostime"); _ctrl.m_secondnextblock = (bool?)xml.Attribute("secondnextblock"); _ctrl.m_seed = (int?)xml.Attribute("seed"); _ctrl.m_selectshortestblock = (bool?)xml.Attribute("selectshortestblock"); _ctrl.m_semaphorewait = (int?)xml.Attribute("semaphorewait"); _ctrl.m_sgevents = (bool?)xml.Attribute("sgevents"); _ctrl.m_signalreset = (int?)xml.Attribute("signalreset"); _ctrl.m_signalwait = (int?)xml.Attribute("signalwait"); _ctrl.m_skipsetsg = (bool?)xml.Attribute("skipsetsg"); _ctrl.m_skipsetsw = (bool?)xml.Attribute("skipsetsw"); _ctrl.m_stopnonecommuter = (bool?)xml.Attribute("stopnonecommuter"); _ctrl.m_swtimeout = (int?)xml.Attribute("swtimeout"); _ctrl.m_syncroutes = (bool?)xml.Attribute("syncroutes"); _ctrl.m_syncroutetimeout = (int?)xml.Attribute("syncroutetimeout"); _ctrl.m_timedsensors = (bool?)xml.Attribute("timedsensors"); _ctrl.m_usebicom = (bool?)xml.Attribute("usebicom"); _ctrl.m_usebididir = (bool?)xml.Attribute("usebididir"); _ctrl.m_useident = (bool?)xml.Attribute("useident"); return(_ctrl); }
public void Update(ctrl element) { if (element.m_actiontimer60.HasValue == true) { this.actiontimer60 = element.actiontimer60; } if (element.m_allowzerothrottleid.HasValue == true) { this.allowzerothrottleid = element.allowzerothrottleid; } if (element.m_blockinitpause.HasValue == true) { this.blockinitpause = element.blockinitpause; } if (element.m_closenoevents.HasValue == true) { this.closenoevents = element.closenoevents; } if (element.m_closeonghost.HasValue == true) { this.closeonghost = element.closeonghost; } if (element.m_createguestonbidi.HasValue == true) { this.createguestonbidi = element.createguestonbidi; } if (element.m_defaspect != null) { this.defaspect = element.defaspect; } if (element.m_disablerouteVreduce.HasValue == true) { this.disablerouteVreduce = element.disablerouteVreduce; } if (element.m_disablesteal.HasValue == true) { this.disablesteal = element.disablesteal; } if (element.m_ebreakatghost.HasValue == true) { this.ebreakatghost = element.ebreakatghost; } if (element.m_ebreakforceunlock.HasValue == true) { this.ebreakforceunlock = element.ebreakforceunlock; } if (element.m_enableanalyzer.HasValue == true) { this.enableanalyzer = element.enableanalyzer; } if (element.m_enableswfb.HasValue == true) { this.enableswfb = element.enableswfb; } if (element.m_eventtimeout.HasValue == true) { this.eventtimeout = element.eventtimeout; } if (element.m_greenaspect.HasValue == true) { this.greenaspect = element.greenaspect; } if (element.m_ignevt.HasValue == true) { this.ignevt = element.ignevt; } if (element.m_initfieldpause.HasValue == true) { this.initfieldpause = element.initfieldpause; } if (element.m_initfieldpower.HasValue == true) { this.initfieldpower = element.initfieldpower; } if (element.m_keepghost.HasValue == true) { this.keepghost = element.keepghost; } if (element.m_loccnfg.HasValue == true) { this.loccnfg = element.loccnfg; } if (element.m_locostartgap.HasValue == true) { this.locostartgap = element.locostartgap; } if (element.m_minbklc.HasValue == true) { this.minbklc = element.minbklc; } if (element.m_poweroffatghost.HasValue == true) { this.poweroffatghost = element.poweroffatghost; } if (element.m_poweroffatreset.HasValue == true) { this.poweroffatreset = element.poweroffatreset; } if (element.m_poweroffonidentmismatch.HasValue == true) { this.poweroffonidentmismatch = element.poweroffonidentmismatch; } if (element.m_releaseonidle.HasValue == true) { this.releaseonidle = element.releaseonidle; } if (element.m_restoreschedule.HasValue == true) { this.restoreschedule = element.restoreschedule; } if (element.m_routeswtime.HasValue == true) { this.routeswtime = element.routeswtime; } if (element.m_savepostime.HasValue == true) { this.savepostime = element.savepostime; } if (element.m_secondnextblock.HasValue == true) { this.secondnextblock = element.secondnextblock; } if (element.m_seed.HasValue == true) { this.seed = element.seed; } if (element.m_selectshortestblock.HasValue == true) { this.selectshortestblock = element.selectshortestblock; } if (element.m_semaphorewait.HasValue == true) { this.semaphorewait = element.semaphorewait; } if (element.m_sgevents.HasValue == true) { this.sgevents = element.sgevents; } if (element.m_signalreset.HasValue == true) { this.signalreset = element.signalreset; } if (element.m_signalwait.HasValue == true) { this.signalwait = element.signalwait; } if (element.m_skipsetsg.HasValue == true) { this.skipsetsg = element.skipsetsg; } if (element.m_skipsetsw.HasValue == true) { this.skipsetsw = element.skipsetsw; } if (element.m_stopnonecommuter.HasValue == true) { this.stopnonecommuter = element.stopnonecommuter; } if (element.m_swtimeout.HasValue == true) { this.swtimeout = element.swtimeout; } if (element.m_syncroutes.HasValue == true) { this.syncroutes = element.syncroutes; } if (element.m_syncroutetimeout.HasValue == true) { this.syncroutetimeout = element.syncroutetimeout; } if (element.m_timedsensors.HasValue == true) { this.timedsensors = element.timedsensors; } if (element.m_usebicom.HasValue == true) { this.usebicom = element.usebicom; } if (element.m_usebididir.HasValue == true) { this.usebididir = element.usebididir; } if (element.m_useident.HasValue == true) { this.useident = element.useident; } }