Beispiel #1
0
        static void Main(string[] arg)
        {
            Phim phim = new Phim(tenrap, diachirap, tenphim, thoigianchieu, mave, giave, loaive, string);

            while (true)
            {
                Console.WriteLine();
                Console.Write("CHUONG TRINH QUAN LY BAN VE XEM PHIM");
                Console.WriteLine();
                Console.WriteLine("1 - Hien thi danh sach phim dang chieu");
                Console.WriteLine("2 - Hien thi danh sach phim sap chieu");
                Console.WriteLine("3 - Danh sach rap tham gia vao he thong");
                Console.WriteLine("4 - Thoat");
                Console.WriteLine("Hay chon so tu 1 den 4 phu hop voi chuc nang tuong ung.");
                Console.Write("Ban chon so : ");
                string c = Console.ReadLine();
                switch (c)
                {
                case "1":     // Danh sach phim dang chieu
                    phim.DanhsachDangchieu();
                    break;

                case "2":     // Danh sach phim sap chieu
                    phim.DanhsachSapchieu();
                    break;

                case "3":     // Danh sach cac rap tham gia he thong
                    break;

                case "4":
                    break;
                }
            }
        }
Beispiel #2
0
 public void DanhsachDangchieu()
 {
     Phim[] Dangchieu = new Phim[15];
     foreach (Phim dangchieu in Dangchieu)
     {
         dangchieu.HienThi();
     }
 }
Beispiel #3
0
 public void DanhsachSapchieu()
 {
     Phim[] Sapchieu = new Phim[15];
     foreach (Phim sapchieu in Sapchieu)
     {
         sapchieu.HienThi();
     }
 }