private static BackupPlanList LoadPlans() { var settingsFolder = GetSettingsFolder(); var plansFile = Path.Combine(settingsFolder, "plans_file"); return(BackupPlanList.Load(plansFile, Log)); }
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); } }