private void SaveFromStream() { StreamWriter streamWriter = new StreamWriter("c:\\SPConfig.conf"); for (NrConfigFile.eKey eKey = NrConfigFile.eKey.LoginID; eKey < NrConfigFile.eKey.END; eKey++) { streamWriter.WriteLine(eKey.ToString() + "=" + this.GetData(eKey.ToString())); } streamWriter.Close(); }
private void SaveFromCookie() { for (NrConfigFile.eKey eKey = NrConfigFile.eKey.LoginID; eKey < NrConfigFile.eKey.END; eKey++) { Application.ExternalCall("setCookie", new object[] { eKey.ToString(), this.GetData(eKey.ToString()) }); } }
private void LoadFromCookie() { for (NrConfigFile.eKey eKey = NrConfigFile.eKey.LoginID; eKey < NrConfigFile.eKey.END; eKey++) { Application.ExternalCall("getCookie", new object[] { eKey.ToString() }); } Application.ExternalCall("LoadedAllConfig", new object[0]); }