示例#1
0
        private void btnKayitOl_Click(object sender, EventArgs e)
        {
            KullaniciGirisForm kullaniciGirisForm = new KullaniciGirisForm();



            kullaniciIslemleri.Ad           = txtAdi.Text;
            kullaniciIslemleri.SoyAd        = txtSoyadi.Text;
            kullaniciIslemleri.Sifre        = txtSifre.Text;
            kullaniciIslemleri.Email        = txtEmail.Text;
            kullaniciIslemleri.TelNo        = txtTelNo.Text;
            kullaniciIslemleri.KullaniciAdi = txtKullaniciAdi.Text;


            if (kullaniciIslemleri.Kaydet() == false)
            {
                MessageBox.Show("Kullanici Adi mevcut veye eksik bilgi girisi !!");
            }
            else
            {
                kullaniciIslemleri.Kaydet();
                this.Hide();
                this.btnKayitOl.Text = "Guncelle";
                kullaniciGirisForm.Show();
            }
        }
示例#2
0
        private void button1_Click(object sender, EventArgs e)
        {
            KullaniciGirisForm kullaniciGirisForm = new KullaniciGirisForm();
            KullaniciIslemleri kullaniciIslemleri = new KullaniciIslemleri();

            if
            (
                MessageBox.Show
                (
                    "Back to Login Page",
                    "Back to Login Page Dialog",
                    MessageBoxButtons.YesNo,
                    MessageBoxIcon.Warning,
                    MessageBoxDefaultButton.Button2 // hit Enter == No !
                )
                == DialogResult.Yes
            )
            {
                string silKullaniciAdi = KullaniciGirisForm.kullaniciAdiSaklama; //kullanici giris kısmında girilen kullanıcı adı kayıt adip indis tespiti icin kullanıyoruz
                kullaniciIslemleri.Sil(silKullaniciAdi);


                this.Hide();
                kullaniciGirisForm.Show();
            }
        }
示例#3
0
        private void btnGeriDon_Click(object sender, EventArgs e)
        {
            KullaniciGirisForm kullaniciGirisForm = new KullaniciGirisForm();

            if
            (
                MessageBox.Show
                (
                    "Back to Login Page",
                    "Back to Login Page Dialog",
                    MessageBoxButtons.YesNo,
                    MessageBoxIcon.Question,
                    MessageBoxDefaultButton.Button2 // hit Enter == No !
                )
                == DialogResult.Yes
            )
            {
                this.Hide();
                kullaniciGirisForm.Show();
            }
        }