Exemple #1
0
 public SettingsManager()
 {
     settingsDirectory = Path.Combine(userFolder, ".vtcmanager");
     settingsFile      = "settings.xml";
     SConfigFileName   = Path.GetFileNameWithoutExtension(Application.ExecutablePath) + ".xml";
     Config            = new SettingsDataObject();
 }
 public void LoadConfig()
 {
     if (File.Exists(Path.Combine(this.settingsDirectory, this.settingsFile)))
     {
         StreamReader textReader = File.OpenText(Path.Combine(this.settingsDirectory, this.settingsFile));
         object       obj2       = new XmlSerializer(this.m_oConfig.GetType()).Deserialize(textReader);
         this.m_oConfig = (SettingsDataObject)obj2;
         textReader.Close();
     }
 }
        public SettingsManager()
        {
            this.settingsDirectory = Path.Combine(userFolder, ".vtcmanager");
            this.settingsFile      = "settings.xml";
            this.m_sConfigFileName = Path.GetFileNameWithoutExtension(Application.ExecutablePath) + ".xml";
            this.m_oConfig         = new SettingsDataObject();


            this.cacheFile        = "cache.xml";
            this.m_sCacheFileName = Path.GetFileNameWithoutExtension(Application.ExecutablePath) + ".xml";
            this.m_oConfigJob     = new CacheDataObject();
        }