public void RefreshMainWindow() { ToDo.Clear(); Doing.Clear(); Backlog.Clear(); Done.Clear(); var result = readDbDataToDisplay(); foreach (var i in result) { if (i.States == BackLog.State.IsToDo) { ToDo.Add(i); } else if (i.States == BackLog.State.IsDoing) { Doing.Add(i); } else if (i.States == BackLog.State.Backlog) { Backlog.Add(i); } else { Done.Add(i); } } }
/// <summary> /// Bruges til at restte viewet tilbage til normalen så der ikke står noget i input felterne /// </summary> public void SprintReset() { SprintBacklog.Clear(); Backlog.Clear(); Sprint_GoalVM = ""; SletState = "Collapsed"; CreateCommand = new RelayCommand(Create); Load(); }