示例#1
0
        /// <summary>
        /// Načte data z dodaného souboru
        /// </summary>
        /// <param name="configFile"></param>
        private void _LoadFrom(string configFile)
        {
            if (String.IsNullOrEmpty(configFile))
            {
                configFile = _CONFIG_FILE_NAME;
            }
            if (!configFile.Contains("\\"))
            {
                configFile = System.IO.Path.Combine(Application.App.AppLocalDataPath, configFile);
            }

            if (System.IO.File.Exists(configFile))
            {
                Persist.LoadTo(configFile, this);
            }

            this._ConfigFile = configFile;
            this._AfterDeserialize();
        }
示例#2
0
 private void _ConfigLoad()
 {
     this._PreparePath(this._File);
     Persist.LoadTo(this._File, this);
     this._SetDefaults();
 }