Пример #1
0
        private void OutPut(List <Book> final)
        {
            if (final.Count == 0)
            {
                Text1.AppendText("Нажаль, такої книги немає в наявності");
            }
            int i = 1;

            foreach (Book book in final)
            {
                Text1.AppendText(i + "." + "\n");
                Text1.AppendText("Магазин " + book.BookShop + "\n");
                Text1.AppendText("Назва " + book.Title + "\n");
                Text1.AppendText("Автор " + book.Author + "\n");
                Text1.AppendText("Жанр " + book.Genre + "\n");
                Text1.AppendText("Рік публікації " + book.Year + "\n");
                Text1.AppendText("Мова " + book.Language + "\n");
                Text1.AppendText("Опис " + book.Description + "\n");
                Text1.AppendText("____________________________________\n");
                i++;
            }
        }
 //---------------------------------------------------------------------
 private void Text1Append(string msg)
 {
     Text1.AppendText(Environment.NewLine + msg + Environment.NewLine);
     //Text1.ScrollToCaret();
 }