Ejemplo n.º 1
0
        private void Form1_Load(object sender, EventArgs e)
        {
            frmKullaniciGiris kullaniciKontrol = new frmKullaniciGiris();

            kullaniciKontrol.MdiParent     = this;
            kullaniciKontrol.StartPosition = FormStartPosition.Manual;
            kullaniciKontrol.Location      = new Point(280, 130);
            kullaniciKontrol.Show();

            admin a = new admin();

            a.id           = "admin";
            a.sifre        = "123";
            a.kullaniciTip = "admin";

            dataBase.dataBase.kullaniciEkle(a);

            kullanici k = new kullanici();

            k.id           = "user";
            k.sifre        = "123";
            k.kullaniciTip = "kullanici";
            dataBase.dataBase.kullaniciEkle(k);

            kullanici k1 = new kullanici();

            k1.id           = "user2";
            k1.sifre        = "123";
            k1.kullaniciTip = "kullanici";
            dataBase.dataBase.kullaniciEkle(k1);
        }
Ejemplo n.º 2
0
        private void btnOturumKapat_Click(object sender, EventArgs e)
        {
            Form1             frm1         = new Form1();
            frmKullaniciGiris frmKullanici = new frmKullaniciGiris();

            frmKullanici.MdiParent     = Application.OpenForms["Form1"];
            frmKullanici.StartPosition = FormStartPosition.Manual;
            frmKullanici.Location      = new Point(280, 130);
            dataBase.dataBase.solPanelKapat();
            pencereleriKapat();
            frmKullanici.Show();
        }
Ejemplo n.º 3
0
        private void btnOturumKapat_Click(object sender, EventArgs e)
        {
            Form1             frm1         = new Form1();
            frmKullaniciGiris frmKullanici = new frmKullaniciGiris();

            this.Close();
            Application.OpenForms["Form1"].Show();
            frmKullanici.MdiParent     = Application.OpenForms["Form1"];
            frmKullanici.StartPosition = FormStartPosition.Manual;
            frmKullanici.Location      = new Point(280, 130);

            frmKullanici.Show();
        }