2
0

Changed access types of Import and Export Tasks to private

This commit is contained in:
glax 2023-05-19 19:21:15 +02:00
parent 133b3146b5
commit c8654dbb85

View File

@ -91,7 +91,7 @@ public class TaskManager
ExportTasks(Directory.GetCurrentDirectory()); ExportTasks(Directory.GetCurrentDirectory());
} }
public HashSet<TrangaTask> ImportTasks(string importFolderPath) private HashSet<TrangaTask> ImportTasks(string importFolderPath)
{ {
string filePath = Path.Join(importFolderPath, "tasks.json"); string filePath = Path.Join(importFolderPath, "tasks.json");
if (!File.Exists(filePath)) if (!File.Exists(filePath))
@ -107,7 +107,7 @@ public class TaskManager
return importTasks.ToHashSet(); return importTasks.ToHashSet();
} }
public void ExportTasks(string exportFolderPath) private void ExportTasks(string exportFolderPath)
{ {
string filePath = Path.Join(exportFolderPath, "tasks.json"); string filePath = Path.Join(exportFolderPath, "tasks.json");
string toWrite = JsonConvert.SerializeObject(_allTasks.ToArray()); string toWrite = JsonConvert.SerializeObject(_allTasks.ToArray());