Пример #1
0
        static void Main(string[] args)
        {

            BookShopManage b1 = new BookShopManage("Gone with wind", "Margaret Mitchell", 100, 1);
            BookShopManage.DisplayInfo(b1);

            BookShopManage b2 = new BookShopManage();
            BookShopManage.DisplayInfo(b2);
        }
Пример #2
0
 public static void DisplayInfo(BookShopManage b)
 {
     if (CountBook == 0)
     {
         Console.WriteLine("There is no book information!");
     } 
     else
     {
         Console.WriteLine("Book numbers:{0}", CountBook);
         Console.WriteLine("Title:{0},Author:{1},WholeSale price:{2},Inventory:{3},Retail price:{4}",b.title,b.author,b.wholesaleprice,b.inventory,b.retailprice);
     }
 }