Пример #1
0
        private static BackupPlanList LoadPlans()
        {
            var settingsFolder = GetSettingsFolder();
            var plansFile      = Path.Combine(settingsFolder, "plans_file");

            return(BackupPlanList.Load(plansFile, Log));
        }
Пример #2
0
        private void LoadPlans()
        {
            var settingsFolder = GetSettingsFolder();
            var plansFile      = Path.Combine(settingsFolder, "plans_file");

            if (!File.Exists(plansFile))
            {
                plans_.Save(plansFile);
            }
            else
            {
                plans_ = BackupPlanList.Load(plansFile, AddLogEntry);
            }
        }