private void btnGiris_Click(object sender, EventArgs e)
 {
     if (kullanici.giris(cbKullanici.Text, txtSifre.Text))
     {
         frmAna frm = new frmAna();
         frm.ShowDialog();
         this.Close();
     }
     else
     {
         MessageBox.Show("Şifre Yanlış... Lütfen Tekrar Deneyiniz...");
     }
 }
        private void btnBolumSec_Click_1(object sender, EventArgs e)
        {
            frmAna frm = null;

            foreach (Form f in Application.OpenForms)
            {
                if (f.Name == "frmAna")
                {
                    frm = (frmAna)f;
                }
            }
            frmBolumSec frm2 = new frmBolumSec();

            frm2.MdiParent = frm;
            frm2.Show();
        }
Exemple #3
0
        private void btnKitapSec_Click(object sender, EventArgs e)
        {
            emanetVer = true;
            frmAna frm = null;

            foreach (Form f in Application.OpenForms)
            {
                if (f.Name == "frmAna")
                {
                    frm = (frmAna)f;
                }
            }
            frmKitapSec frm2 = new frmKitapSec();

            frm2.MdiParent = frm;
            frm2.Show();
        }
        private void btnKitapGecmis_Click(object sender, EventArgs e)
        {
            if (secim)
            {
                frmAna frm = null;
                foreach (Form f in Application.OpenForms)
                {
                    if (f.Name == "frmAna")
                    {
                        frm = (frmAna)f;
                    }
                }

                frmkitapGecmis frm2 = new frmkitapGecmis();
                frm2.MdiParent = frm;
                frm2.Show();
            }

            else
            {
                MessageBox.Show("Önce Kitap Secmelisiniz...");
            }
        }