private static Func <RowImportSchemeViewModel, bool> CreateRowPredicate(BoardImportSchemeViewModel selectedBoard) { if (selectedBoard == null) { return(x => false); } return(x => x.BoardId == selectedBoard.Id); }
public void UpdateBoards(List <Board> boards) { _boardsSource.Edit(x => { x.Clear(); if (boards != null) { x.AddRange(boards.Select(y => new BoardImportSchemeViewModel { Id = y.Id, Name = y.Name, IsSelected = true, IsEnabled = true })); } }); SelectedBoard = _boardsSource.Items.FirstOrDefault(); }