public bolumGüncellemeform(bolum gBol) { InitializeComponent(); textBox1.Text = gBol.Ad; textBox2.Text = gBol.Tel; label3.Text = gBol.Id.ToString(); }
internal void bolumGuncelle(bolum bolum) { (new MySqlCommand("update bolumler set bolumad='" + bolum.Ad + "',bolumtel='" + bolum.Tel + "' where bolumid=" + bolum.Id, (new dbBaglanti()).baglantiGetir())).ExecuteNonQuery(); }
internal void bolumSil(bolum bolum) { (new MySqlCommand("delete from bolumler where bolumid= " + bolum.Id, (new dbBaglanti()).baglantiGetir())).ExecuteNonQuery(); }
internal void bolumKaydet(bolum bolum) { (new MySqlCommand("insert into bolumler(bolumad,bolumtel)values('" + bolum.Ad + "','" + bolum.Tel + "')", (new dbBaglanti()).baglantiGetir())).ExecuteNonQuery(); }