/// <summary> /// Lädt eine Datei in eine ScrumDatabase /// </summary> /// <param name="database">Die Datenbank, in die die Datei geladen werden soll</param> /// <param name="filepath">Der Pfad zur Datei</param> /// <param name="surface"></param> public void LoadFile(ScrumDatabase database, string filepath, ScrumSurface surface) { XElement root = LoadFileToXElement(filepath); XElement epics = root.Elements("EpicList").First(); XElement userstories = root.Elements("UserStoryList").First(); if (epics != null && userstories != null) { database.ClearItems(); database.LoadItems(ConvertToItemList <Epic>(epics, surface)); database.LoadItems(ConvertToItemList <UserStory>(userstories, surface)); } }
private void ContinueLoading() { datab.ClearItems(); datab.LoadItems(Epics, UserStories); }