Add templates to settings dialog incl load validate save. Edit buttons are in place but currently do nothing

This commit is contained in:
Robert McRackan 2021-10-27 16:51:31 -04:00
parent d20517063e
commit d0051c0f02
4 changed files with 232 additions and 36 deletions

View file

@ -147,6 +147,8 @@ namespace LibationFileManager
set => persistentDictionary.SetNonString(nameof(DownloadEpisodes), value);
}
#region templates: custom file naming
[Description("How to format the folders in which files will be saved")]
public string FolderTemplate
{
@ -161,7 +163,7 @@ namespace LibationFileManager
set => setTemplate(nameof(FileTemplate), Templates.File, value);
}
[Description("How to format the saved audio files which are split by chapters")]
[Description("How to format the saved audio files when split by chapters")]
public string ChapterFileTemplate
{
get => getTemplate(nameof(ChapterFileTemplate), Templates.ChapterFile);
@ -181,6 +183,8 @@ namespace LibationFileManager
}
#endregion
#endregion
#region known directories
public static string AppDir_Relative => $@".\{LIBATION_FILES_KEY}";
public static string AppDir_Absolute => Path.GetFullPath(Path.Combine(Path.GetDirectoryName(Exe.FileLocationOnDisk), LIBATION_FILES_KEY));