private bool DataFile_Save() { bool result = false; try { ToDoListIO.Save(ToDoList, File_Path_JSON); result = true; } catch (Exception e) { System.Console.WriteLine("File Save Error, Exception: {0}", e.ToString()); //e.Message } return(result); }
private bool DataFile_Load() { bool result = false; try { var aList = ToDoListIO.Load(File_Path_JSON); ToDoListCollection listCollection = aList; if (listCollection != null) { ToDoList = listCollection; result = true; } } catch (Exception e) { System.Console.WriteLine("Exception: {0} \nFile Load Error", e.Message); } return(result); }