示例#1
0
        public static void Menu()
        {
            do
            {
                Console.Clear();
                Console.WriteLine("");
                Console.WriteLine();
                Console.WriteLine();
                Console.WriteLine();
                Console.WriteLine("\t\t\t\t************************************************************\t\t\t");
                Console.WriteLine("\t\t\t\t*                     QUẢN LÝ BÁN GAS                      *\t\t\t");
                Console.WriteLine("\t\t\t\t*                 1.Quản lý Hàng hóa                       *\t\t\t");
                Console.WriteLine("\t\t\t\t*                 2.Quản lý Nhà cung cấp                   *\t\t\t");
                Console.WriteLine("\t\t\t\t*                 3.Quản lý Nhân viên                      *\t\t\t");
                Console.WriteLine("\t\t\t\t*                 4.Quản lý  Hóa đơn Nhập                  *\t\t\t");
                Console.WriteLine("\t\t\t\t*                 5.Quản lý  Hóa đơn Bán                   *\t\t\t");
                Console.WriteLine("\t\t\t\t*                 6.Quản lý  Khách hàng                   *\t\t\t");
                Console.WriteLine("\t\t\t\t*                 7.Kết Thúc                               *\t\t\t");
                Console.WriteLine("\t\t\t\t************************************************************\t\t\t");
                Console.WriteLine("Chọn thông tin:");
                int n = int.Parse(Console.ReadLine());
                switch (n)
                {
                case 1:
                    FormHangHoa frm = new FormHangHoa();
                    frm.Menu();
                    break;

                case 2:
                    FormNCC frm2 = new FormNCC();
                    frm2.Menu();
                    break;

                case 3:
                    FormNhanVien frm3 = new FormNhanVien();
                    frm3.Menu();
                    break;

                case 4:
                    FormHDN frm4 = new FormHDN();
                    frm4.Menu();
                    break;

                case 5:
                    FormHDB frm5 = new FormHDB();
                    frm5.Menu();
                    break;

                case 6:
                    FormKhachHang frm6 = new FormKhachHang();
                    frm6.Menu();
                    break;

                case 7:
                    break;
                }
            } while (true);
        }
示例#2
0
        public static void Menu()
        {
            do
            {
                Console.Clear();
                Console.WriteLine("\t\t\t\t************************************\t\t\t");
                Console.WriteLine("\t\t\t\t*           QUAN LY BAN GAS        *\t\t\t");
                Console.WriteLine("\t\t\t\t*        1.Quan ly hang hoa        *\t\t\t");
                Console.WriteLine("\t\t\t\t*        2.Quan ly nha cung cap     *\t\t\t");
                Console.WriteLine("\t\t\t\t*        3.Quan ly nhan vien        *\t\t\t");
                Console.WriteLine("\t\t\t\t*        4.Quan ly hoa don ban      *\t\t\t");
                Console.WriteLine("\t\t\t\t*        5.Quan ly hoa don nhap     *\t\t\t");
                Console.WriteLine("\t\t\t\t*        6.Ket thuc                *\t\t\t");
                Console.WriteLine("\t\t\t\t************************************\t\t\t");
                Console.WriteLine("Nhap n");
                int n = int.Parse(Console.ReadLine());
                switch (n)
                {
                case 1:
                    FormHangHoa frm = new FormHangHoa();
                    frm.Menu();
                    break;

                case 2:
                    FormNCC frm2 = new FormNCC();
                    frm2.Menu();
                    break;

                case 3:
                    FormNhanVien frm3 = new FormNhanVien();
                    frm3.Menu();
                    break;

                case 4:
                    FormHDB frm4 = new FormHDB();
                }
            } while (true);
        }