public static void LoadSettings() { if (File.Exists(settingsFile) == false) { publishSettings = new PublishSettings(); publishSettings.publishes = new List<Publish>(); publishSettings.publishLocation = new List<PublishLocation>(); return; } TextReader r = new StreamReader(settingsFile); publishSettings = (PublishSettings)s.Deserialize(r); r.Close(); }
public static void LoadSettings() { if (File.Exists(settingsFile) == false) { publishSettings = new PublishSettings(); publishSettings.publishes = new List <Publish>(); publishSettings.publishLocation = new List <PublishLocation>(); return; } TextReader r = new StreamReader(settingsFile); publishSettings = (PublishSettings)s.Deserialize(r); r.Close(); }