Exemplo n.º 1
0
 private void insertAll_Click(object sender, EventArgs e)
 {
     db.insertCar();
     db.insertCustomer();
     db.insertSeller();
     db.insertDeal();
 }
Exemplo n.º 2
0
        private void custOK_Click(object sender, EventArgs e)
        {
            if (custName.Text == "" || custAddress.Text == "" ||
                custTel.Text == "" || custEmail.Text == "")
            {
                MessageBox.Show("누락된 정보가 있습니다.\n" + "올바르게 입력하세요.");
                return;
            }
            List <Deal> list = dHandler.getDealList();

            try
            {
                Customer customer = new Customer(
                    custName.Text,
                    custAddress.Text,
                    custTel.Text,
                    custEmail.Text);
                list[0].Customer = customer;
                oracle.insertCustomer(customer);
                Close();
            }
            catch (FormatException ex)
            {
                Console.WriteLine("똑바로 입력하세요");
            }
        }
Exemplo n.º 3
0
 private void uiSymbolButton1_Click(object sender, EventArgs e)
 {
     ora.insertCar();
     ora.insertCustomer();
     ora.insertSeller();
     ora.insertDeal();
 }