private void btn_hesaplistele_Click(object sender, EventArgs e) { Hesap hesap = new Hesap(); hesap.Hesap_Load(sender, e); hesap.ShowDialog(); }
private void btn_git_Click(object sender, EventArgs e) { Baglanti t = new Baglanti(); Hesap hesap = new Hesap(); Form1 form1 = new Form1(); hesap.txt_musterino.Text = txt_musterino.Text; form1.txt_musterino.Text = txt_musterino.Text; if (txt_musterino.Text != "") { if (hesap.musteriNoKontrol()) { if (form1.hesapSayısıKontrol() == true) { form1.txt_musterino.Text = txt_musterino.Text; hesap.txt_hesapno.Text = form1.hesapNoCek(); hesap.txt_iban.Text = form1.ibanNoCek(); hesap.txt_musterino.ReadOnly = true; hesap.txt_hesapno.ReadOnly = true; hesap.txt_iban.ReadOnly = true; hesap.Hesap_Load(sender, e); hesap.ShowDialog(); } else { form1.txt_musterino.Text = txt_musterino.Text; hesap.txt_musterino.ReadOnly = true; hesap.txt_hesapno.Text = ""; hesap.txt_iban.Text = ""; hesap.Hesap_Load(sender, e); hesap.ShowDialog(); } } } else { MessageBox.Show("Lütfen Müşteri Numarası Giriniz"); } }