Esempio n. 1
0
 private void LoadScriptSettings()
 {
     if (File.Exists(scriptsFile))
     {
         XmlSerializer deserializer = new XmlSerializer(typeof(IceChatScripts));
         TextReader    textReader   = new StreamReader(scriptsFile);
         iceChatScripts = (IceChatScripts)deserializer.Deserialize(textReader);
         textReader.Close();
         textReader.Dispose();
     }
     else
     {
         iceChatScripts = new IceChatScripts();
     }
 }
Esempio n. 2
0
 private void LoadScriptSettings()
 {
     if (File.Exists(scriptsFile))
     {
         XmlSerializer deserializer = new XmlSerializer(typeof(IceChatScripts));
         TextReader textReader = new StreamReader(scriptsFile);
         iceChatScripts = (IceChatScripts)deserializer.Deserialize(textReader);
         textReader.Close();
         textReader.Dispose();
     }
     else
         iceChatScripts = new IceChatScripts();
 }