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(); } }
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(); }