public bool readGPIOStationEnvironmentDatafromLocalStorage(GPIOEnvironmentConnector StationEnvironment, Windows.Storage.ApplicationDataCompositeValue composite, int ListenerIdx) { if (m_localStorage == null) { return(false); } m_localStorage.SetSourceIDName("StationEnvironment.GPIO", ListenerIdx); int Idx = -1; bool bStoreOk = m_localStorage.readSettingsfromLocalStorage(composite, Idx); if (bStoreOk) { string StringValue; int IntValue; bool bok = m_localStorage.readStringSettingsfromLocalStorage(composite, m_localStorage.getCompositePropertyIDName("StationEnvironment.HostName", Idx), out StringValue); if (StringValue.Count() > 0) { StationEnvironment.HostName = StringValue; } bok = m_localStorage.readIntegerSettingsfromLocalStorage(composite, m_localStorage.getCompositePropertyIDName("StationEnvironment.Port", Idx), out IntValue); if (IntValue > 0) { StationEnvironment.Port = IntValue; } bok = m_localStorage.readIntegerSettingsfromLocalStorage(composite, m_localStorage.getCompositePropertyIDName("StationEnvironment.GPIOConnectorEnable", Idx), out IntValue); StationEnvironment.GPIOConnectorEnable = Convert.ToBoolean(IntValue); for (int i = 0; i < StationEnvironment.GPIOOInOutBanks.InOutBanks.Count; i++) { GPIOOBank bank = StationEnvironment.GPIOOInOutBanks.InOutBanks[i]; foreach (GPIOObjects OutPuts in bank.GPIOBanks) { foreach (GPIOObject GPIOObj in OutPuts.GPIOs) { string property; bok = m_localStorage.readStringSettingsfromLocalStorage(composite, m_localStorage.getCompositePropertyIDName(GPIOObj.GPIOName, Idx), out property); if (bok) { GPIOObj.CreateGPIOObjectByStorageSettings(property); } } } } } return(bStoreOk); }