Exemple #1
0
        private void menuUyeEkle_Click(object sender, EventArgs e)
        {
            frmUyeEkle frm = new frmUyeEkle();

            frm.MdiParent = this;
            frm.Show();
        }
Exemple #2
0
        private void btnBul_Click(object sender, EventArgs e)
        {
            Uye   u   = null;
            UyeBL ubl = new UyeBL();

            u = ubl.UyeBul(txtTel.Text.Trim());
            if (u != null)
            {
                frmUyeEkle frm = (frmUyeEkle)Application.OpenForms["frmUyeEkle"];
                frm.txtUyeAd.Text     = u.UyeAd;
                frm.txtUyeSoyad.Text  = u.UyeSoyad;
                frm.txtUyeTel.Text    = u.UyeTel;
                frm.txtUyeMail.Text   = u.UyeMail;
                frm.uyeID             = u.UyeID;
                frm.btnEkle.Text      = "Güncelle";
                frm.btnSil.Visible    = true;
                frm.btnVazgec.Visible = true;
            }
            else
            {
                MessageBox.Show("Üye Bulunamadı.");
            }
        }