Example #1
0
        static void Main(string[] args)
        {
            BookList bl = new BookList();

            // Write out a header for the output.
            Console.WriteLine("Array - Unsorted\n");
            Book b1 = new Book("x", "x", "x", "x", 2000);

            bl.Add(b1);
            Book b2 = new Book("a", "x", "x", "x", 2019);

            bl.Add(b2);
            Book b3 = new Book("e", "x", "x", "x", 2001);

            bl.Add(b3);
            Book b4 = new Book("b", "x", "x", "x", 2000);

            bl.Add(b4);
            Book b5 = new Book("x", "x", "x", "x", 2002);

            bl.Add(b5);
            bl.ShowList();
            Console.WriteLine("-------------------------------------------------");
            //sorting
            bl.sortBookList("title");
            Console.WriteLine("Linh dep trai");
            Console.WriteLine("Chinh Dep Trai");
            Console.WriteLine("Chinh Chinh!");
            Console.WriteLine("Tu dz");
            Console.ReadLine();
        }
Example #2
0
        static void Main(string[] args)
        {
            BookList b1 = new BookList();

            b1.InputList();
            b1.showList();
            Console.ReadLine();
        }