internal Controler() { SaveAndLoadData saveAndLoadData = new SaveAndLoadData(); Tasks loadTasks = new Tasks(); loadTasks = saveAndLoadData.LoadTasksXml(); if (loadTasks.ToDos != null) { tasks = loadTasks; } StartMethod(); }
internal void SaveTasks() { SaveAndLoadData saveAndLoadData = new SaveAndLoadData(); saveAndLoadData.SaveTasksXml(tasks); }