private void sellerOk_Click(object sender, EventArgs e) { if (sellName.Text.Trim() == "" || sellTel.Text.Trim() == "" || sellEmail.Text.Trim() == "" || sellAgent.Text.Trim() == "" || sellPosition.Text.Trim() == "") { MessageBox.Show("누락된 정보가 있습니다.\n 다시 입력하세요"); return; } /* else * { * Car car = new Car(carYear.Text, Int32.Parse(carMoney.Text), carModel.Text, carColor.Text); * oracle.insertCar(car); * }*/ List <Deal> list = dHandler.getDealList(); try { Seller seller = new Seller(sellName.Text, sellTel.Text, sellEmail.Text, sellAgent.Text, sellPosition.Text); list[0].Seller = seller; oracle.insertSeller(seller); Close(); } catch (FormatException ex) { Console.WriteLine(ex.Message); } }
private void uiSymbolButton1_Click(object sender, EventArgs e) { ora.insertCar(); ora.insertCustomer(); ora.insertSeller(); ora.insertDeal(); }
private void insertAll_Click(object sender, EventArgs e) { db.insertCar(); db.insertCustomer(); db.insertSeller(); db.insertDeal(); }
private void sellOK_Click(object sender, EventArgs e) { if (sellName.Text == "" || sellTel.Text == "" || sellEmail.Text == "" || sellSpot.Text == "" || sellBusiness.Text == "") { MessageBox.Show("누락된 정보가 있습니다.\n" + "올바르게 입력하세요."); return; } List <Deal> list = dHandler.getDealList(); try { Seller seller = new Seller( sellName.Text, sellTel.Text, sellEmail.Text, sellSpot.Text, sellBusiness.Text); list[0].Seller = seller; oracle.insertSeller(seller); Close(); } catch (FormatException ex) { Console.WriteLine("똑바로 입력하세요."); } }