/// <summary> /// Stores export profiles to a configuration file. /// </summary> /// <param name="filePath">Full path to export configuration file where it is necessary /// to store the profiles.</param> public void SaveProfiles(string filePath) { Debug.Assert(!string.IsNullOrEmpty(filePath)); var file = new ExportFile(); file.Save(filePath, _profiles); }
/////////////////////////////////////////////////////////////////////////////////////////// /////////////////////////////////////////////////////////////////////////////////////////// /////////////////////////////////////////////////////////////////////////////////////////// /// <summary> /// Loads export profiles from configuration file. /// </summary> /// <param name="filePath">Full path to export configuration file.</param> public void LoadProfiles(string filePath) { Debug.Assert(!string.IsNullOrEmpty(filePath)); var file = new ExportFile(); _profiles = file.Load(filePath, _structureKeeper); }