Beispiel #1
0
        public void SaveUserTasksToTxtFiles(ObservableCollection <UserTask> userTaskCollection)
        {
            var           writer    = new TextFileWriter(userTasksTxtFilePath);
            List <string> userTasks = new List <string>();

            foreach (UserTask task in userTaskCollection)
            {
                userTasks.Add(task.ToString());
            }
            writer.Write(userTasks);
        }
Beispiel #2
0
        public void SaveNewUserTaskToTxtFile(UserTask userTask)
        {
            var writer = new TextFileWriter(userTasksTxtFilePath);

            writer.AddOneLine(userTask.ToString());
        }