Exemplo n.º 1
0
        public static async Task BoardUpdate(Board board)
        {
            var onlineBoard  = new BoardRepository(Connection());
            var updatedBoard = await onlineBoard.FetchBoard();

            foreach (var content in updatedBoard)
            {
                var obj = board.Container.FirstOrDefault(x => x.Id == content.Id);
                if (obj != null)
                {
                    obj.Id = content.Id;
                }
                Convert(content, board);
            }
            BoardView.DrawBoard(board.BoardState());
        }