Exemplo n.º 1
0
        public void searchPhone()
        {
            Console.WriteLine("=====Galaxy S Series apa yang anda cari?=====");
            var phone = new smartphone();

            phone.displayList(); //memanggil method displayList dari class smartphone
            Console.Write("\nMasukkan pilihan anda: ");
            string pilihanTemp = Console.ReadLine();
            int    choose      = Convert.ToInt32(pilihanTemp);

            phone.pilihan(choose); //memanggil method pilihan dari class smartphone
            Console.Write("\nApakah anda yakin ingin memesan ini? (ya/tidak) ");
            string yakin = Console.ReadLine();

            if (yakin == "ya" || yakin == "Ya" || yakin == "YA" || yakin == "yA")
            {
                var pesen = new order();
                pesen.format_order();
            }
            else if (yakin == "tidak" || yakin == "Tidak" || yakin == "TIDAK")
            {
                searchPhone();
            }
            var pay = new payment();

            pay.all_methods();
            var lain = new otherVar();

            lain.other();
        }
Exemplo n.º 2
0
        private void bts20_Click(object sender, EventArgs e)
        {
            if (sdua.IsDisposed == true)
            {
                sdua = new pricelistS20();
            }
            var b = new smartphone();

            b.priceList_S20(2);
            sdua.Show();
        }
Exemplo n.º 3
0
        private void bts21_Click(object sender, EventArgs e)
        {
            if (s1.IsDisposed == true)
            {
                s1 = new pricelistS21();
            }
            var c = new smartphone();

            c.priceList_S21(1);
            s1.Show();
        }
Exemplo n.º 4
0
        private void btS10_Click(object sender, EventArgs e)
        {
            if (sten.IsDisposed == true)
            {
                sten = new pricelistS10();
            }
            var a = new smartphone();

            a.priceList_S10(3);
            sten.Show();
        }