private void button_araba_sil_Click(object sender, EventArgs e) { Araba nesne = new Araba() { ArabaID = (comboBox_araba_ID.SelectedIndex != -1) ? Convert.ToInt32(comboBox_araba_ID.Text) : 1, }; DB_Sil dbIslem = new DB_Sil(); bool result = dbIslem.ArabaSil(nesne); SonucGoster(result); }
private void button_ilan_sil_Click(object sender, EventArgs e) { Ilan ilan = new Ilan() { IlanID = (comboBox_ilanID.SelectedIndex != -1) ? Convert.ToInt32(comboBox_ilanID.Text) : 1, }; DB_Sil dbIslem = new DB_Sil(); bool result = dbIslem.IlanSil(ilan); SonucGoster(result); }