public void btnYenile_Click(object sender, EventArgs e) { string ad = KullaniciGiris.kullaniciadi; SqlBolum bolumm2 = new SqlBolum(); dataAraziGoster.DataSource = bolumm2.ListDatas2(ad).Tables[0]; dataDaireGoster.DataSource = bolumm2.ListDatas(ad).Tables[0]; }
private void btnDaireSil_Click(object sender, EventArgs e)// BU KOD SATIRLARINDA EKLEDİĞİMİZ KONUT İLANI SİLME İŞLEMİNİ GERÇEKLEŞTİRİYORUZ. { string adres = dataDaireGoster.CurrentRow.Cells[3].Value.ToString(); SqlBolum bolum = new SqlBolum(); bool dogrulama = bolum.DaireKayitSilindiMi(adres); if (dogrulama == true) { MessageBox.Show("KAYIT SİLİNDİ"); string ad = KullaniciGiris.kullaniciadi; SqlBolum bolumm2 = new SqlBolum(); dataDaireGoster.DataSource = bolumm2.ListDatas2(ad).Tables[0]; } else { MessageBox.Show("HATA!"); } }
private void btnAraziSil_Click(object sender, EventArgs e) // BU KOD SATIRLARINDA EKLEDİĞİMİZ ARAZİ İLANI SİLME İŞLEMİNİ GERÇEKLEŞTİRİYORUZ. { bool dogrulama = false; int parsel = Convert.ToInt32(dataAraziGoster.CurrentRow.Cells[5].Value); SqlBolum bolum = new SqlBolum(); dogrulama = bolum.AraziKayitSilindiMi(parsel); if (dogrulama == true) { MessageBox.Show("KAYIT SİLİNDİ"); string ad = KullaniciGiris.kullaniciadi; SqlBolum bolumm2 = new SqlBolum(); dataAraziGoster.DataSource = bolumm2.ListDatas2(ad).Tables[0]; } else { MessageBox.Show("HATA!"); } }
private void arsaclick(object sender, EventArgs e) //BU KOD SATIRLARIINDA EKLEMİŞ OLDUĞUMUZ ARAZİ İLANLARINI LİSTELEMEKTEYİZ. { btnKonutGuncelle.Visible = false; btnAraziGuncelle.Visible = true; btnDaireSil.Visible = false; btnAraziSil.Visible = true; string ad = KullaniciGiris.kullaniciadi; SqlBolum bolumm2 = new SqlBolum(); dataAraziGoster.DataSource = bolumm2.ListDatas2(ad).Tables[0]; dataAraziGoster.Visible = true; Color renk = button3.BackColor; button1.BackColor = Color.Green; button2.BackColor = renk; this.Width = 761; this.Height = 672; dataDaireGoster.Visible = false; }