public BoardWindowDataContext(UserController service, string boardName) { this.service = service; this.boardName = boardName; this.Ib = this.service.GetIBoard(boardName); ShowTheard(); }
public void ShowTheard(InterfaceLayerUser user) { BindableCollection <BoardWindowTask> tasks = new BindableCollection <BoardWindowTask>(); InterfaceLayerBoard board = user.Board; foreach (InterfaceLayerColumn col in user.Board.boardColumns.Values) { foreach (InterfaceLayerTask t in col.tasks) { if (t != null) { tasks.Add(new BoardWindowTask(t)); } } } Tasks = tasks; }
public void SetIB(InterfaceLayerBoard newIB) { this.Ib = newIB; ShowTheard(); }