internal ObservableCollection <ListViewBookInfo> GetBookInfo()
        {
            var bookInfo = new ObservableCollection <ListViewBookInfo>();

            var random = new Random();

            for (int i = 0; i < 20; i++)
            {
                var book = new ListViewBookInfo()
                {
                    BookName        = BookNames[random.Next(0, BookNames.Count() - 1)],
                    BookNumber      = i + 1,
                    BookDescription = BookDescriptions[random.Next(0, BookDescriptions.Count() - 1)],
                };
                bookInfo.Add(book);
            }
            return(bookInfo);
        }
Beispiel #2
0
        internal ObservableCollection <ListViewBookInfo> GetBookInfo()
        {
            var bookInfo = new ObservableCollection <ListViewBookInfo>();

            var random = new Random();

            for (int i = 0; i < 500; i++)
            {
                var book = new ListViewBookInfo()
                {
                    BookName        = BookNames[random.Next(0, BookNames.Count() - 1)],
                    BookNumber      = i,
                    BookDescription = BookDescriptions[random.Next(0, BookDescriptions.Count() - 1)],
                    AuthorImage     = ImageSource.FromResource("AutoFitSample.Autofit.Image" + random.Next(0, BookNames.Count() - 1) + ".png")
                };
                bookInfo.Add(book);
            }
            return(bookInfo);
        }