예제 #1
0
    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();
    }
예제 #2
0
 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())
         });
     }
 }
예제 #3
0
 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]);
 }