private static string GetDatabaseFilename()
        {
            string dbdir = FolderManager.DbFolder();

            if (!Directory.Exists(dbdir))
            {
                Directory.CreateDirectory(dbdir);
            }
            return(Path.Combine(dbdir, Properties.Resources.db_filename));
        }
        /// <summary>
        /// Returns a Queue of the backup files
        /// with the oldest first in line.
        /// </summary>
        /// <returns></returns>
        private static Queue <FileInfo> GetBackupQueue()
        {
            List <FileInfo> unsorted = new List <FileInfo>();
            string          glob     = Properties.Resources.db_backup_glob;

            string[] sa = Directory.GetFiles(FolderManager.DbFolder(), glob).ToArray();
            foreach (string s in sa)
            {
                unsorted.Add(new FileInfo(s));
            }
            List <FileInfo> sorted = unsorted.OrderBy(f => f.CreationTimeUtc).ToList();

            return(new Queue <FileInfo>(sorted));
        }
 protected override string TargetFolder()
 {
     return(FolderManager.PostcardsAndParticipantsFolder(Year, ServiceType));
 }
 protected override string TargetFolder()
 {
     return(FolderManager.ChristmasProgramFolder(Year));
 }