Esempio n. 1
0
        private void LoadBoard()
        {
            int x = 0;

            _saveRoot !.BoardList.ForEach(thisBoard =>
            {
                int UpTo;
                if (thisBoard.BoardCategory == BoardInfo.EnumBoardCategory.Regular)
                {
                    UpTo = thisBoard.HowManyColumns;
                }
                else if (thisBoard.BoardCategory == BoardInfo.EnumBoardCategory.FarRight)
                {
                    UpTo = 2;
                }
                else
                {
                    UpTo = 1;
                }
                UpTo.Times(y =>
                {
                    AddCardToBoard(thisBoard, x);
                    x++;
                });
            });
        }
Esempio n. 2
0
        private TextSearchFilter CreateFilter(int?usersPerPage = null)
        {
            var filter = new TextSearchFilter
            {
                NotOlderThen = UseStartDate
                                                                ? NotOlderThen.ToUniversalTime()
                                                                : (DateTime?)null,
                Upto = UseEndDate
                                                        ? UpTo.ToUniversalTime()
                                                        : (DateTime?)null,
                Contains = !string.IsNullOrEmpty(SearchText)
                                                                ? SearchText
                                                                : null,
                Take = usersPerPage,
                Skip = usersPerPage != null ? (CurrentPageIndex - 1) * usersPerPage : null,
            };

            return(filter);
        }