private void simpleButton1_Click(object sender, EventArgs e) { hesap.HesapNo = txt_hesapno.Text; hesap.HesapSahibi = txt_hesapsahibi.Text; hesap.HesapIBAN = txt_hesapiban.Text; hesap.HesapSKT = txt_hesapskt.Text; hesap.HesapBakiye = decimal.Parse(txt_hesapbakiye.Text); hesap.HesapSifre = int.Parse(txt_hesapsifre.Text); hesap.HesapCVV = int.Parse(txt_hesapcvv.Text); hesap.HesapDetay = txt_hesapdetay.Text; try { hesapislem.HesapEkle(hesap); MessageBox.Show("Hesap Başarı İle Eklendi", "Bilgi", MessageBoxButtons.OK, MessageBoxIcon.Information); grd_hesaplar.DataSource = hesapislem.HesapGetir(); } catch (Exception ex) { MessageBox.Show(ex.Message); } }
public DataTable HesapGetir() { return(hesapislem.HesapGetir()); }