コード例 #1
0
 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();
 }
コード例 #2
0
        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();
        }