/// <summary> /// /// </summary> /// <param name="d"></param> /// <returns></returns> private static string GetExtend(XD1100Device d) { StringStringDictionary ssDict = new StringStringDictionary(); ssDict["HtmMode"] = d.HtmMode.ModeValue.ToString(); string extend = StringStringDictionaryConverter.ToString(ssDict); return(extend); }
/// <summary> /// /// </summary> /// <param name="deviceExtendParameters"></param> /// <returns></returns> private FluxPlace GetFluxPlace(string deviceExtendParameters) { FluxPlace p = FluxPlace.Unknown; StringStringDictionary ssd = StringStringDictionaryConverter.Parse(deviceExtendParameters); if (ssd.ContainsKey(PlaceDeviceBase.PN_FLUXPLACE)) { string place = ssd[PlaceDeviceBase.PN_FLUXPLACE]; try { p = (FluxPlace)Enum.Parse(typeof(FluxPlace), place); } catch (Exception ex) { log.Error(ex.ToString()); } } return(p); }