Exemple #1
0
 private void LoadHighLites()
 {
     if (File.Exists(nickhighlitesFile))
     {
         XmlSerializer deserializer = new XmlSerializer(typeof(IceChatHighLites));
         TextReader    textReader   = new StreamReader(nickhighlitesFile);
         iceChatNickHighLites = (IceChatHighLites)deserializer.Deserialize(textReader);
         textReader.Close();
         textReader.Dispose();
     }
     else
     {
         iceChatNickHighLites = new IceChatHighLites();
     }
 }
Exemple #2
0
 private void LoadHighLites()
 {
     if (File.Exists(highlitesFile))
     {
         XmlSerializer deserializer = new XmlSerializer(typeof(IceChatHighLites));
         TextReader textReader = new StreamReader(highlitesFile);
         iceChatHighLites = (IceChatHighLites)deserializer.Deserialize(textReader);
         textReader.Close();
         textReader.Dispose();
     }
     else
         iceChatHighLites = new IceChatHighLites();
 }