/// <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(); }
private void _ConfigLoad() { this._PreparePath(this._File); Persist.LoadTo(this._File, this); this._SetDefaults(); }