예제 #1
0
        private void btnGeriDon_Click(object sender, EventArgs e)
        {
            frmUyeGirisi gecis = new frmUyeGirisi();

            gecis.Show();
            this.Hide();
        }
예제 #2
0
        private void frmYeniUyeKayit_KeyDown(object sender, KeyEventArgs e)
        {
            switch (e.KeyData)
            {
            case Keys.Escape:
                this.Close();
                break;

            default:
                break;
            }
            switch (e.KeyData)
            {
            case Keys.F2:
                UyeKaydet();
                break;

            default:
                break;
            }
            switch (e.KeyData)
            {
            case Keys.F3:
                frmUyeGirisi gecis = new frmUyeGirisi();
                gecis.Show();
                this.Hide();
                break;

            default:
                break;
            }
        }
예제 #3
0
 void UyeKaydet()
 {
     try
     {
         if (textBox1.Text != "" && textBox2.Text != "" && textBox3.Text != "" && textBox8.Text != "" && textBox9.Text != "")
         {
             bag.Open();
             kmt.Connection  = bag;
             kmt.CommandText = "INSERT INTO Kullanicilar(TC,Adi,Soyadi,Telefonu,Mail,Sehir,KullaniciAdi,Sifre) VALUES ('" + textBox1.Text + "','" + textBox2.Text + "','" + textBox3.Text + "','" + textBox4.Text + "','" + textBox5.Text + "','" + textBox6.Text + "','" + textBox8.Text + "','" + textBox9.Text + "') ";
             kmt.ExecuteNonQuery();
             kmt.Dispose();
             bag.Close();
             DialogResult sonuc;
             sonuc = MessageBox.Show("ÜYE BİLGİLERİ KAYIT EDİLECEK EMİN MİSİNİZ ? ", "DİKKAT !!!", MessageBoxButtons.YesNo, MessageBoxIcon.Question);
             if (sonuc == DialogResult.Yes)
             {
                 if (MessageBox.Show("BİLGİLERİNİZ BAŞARIYLA KAYDEDİLMİŞTİR !", "DİKKAT !!!", MessageBoxButtons.OK, MessageBoxIcon.Information) == DialogResult.OK)
                 {
                     frmUyeGirisi gecis = new frmUyeGirisi();
                     gecis.Show();
                     this.Hide();
                 }
             }
         }
         else
         {
             MessageBox.Show("ZORUNLU ALANLAR BOŞ GEÇİLEMEZ !", "DİKKAT !!!", MessageBoxButtons.OK, MessageBoxIcon.Stop);
         }
     }
     catch (Exception hata)
     {
         MessageBox.Show("BİLİNMEYEN BİR HATA İLE KARŞILAŞILDI !!! \n\n" + "HATA İÇERİĞİ : \n " + hata.Message, "DİKKAT !!!", MessageBoxButtons.OK, MessageBoxIcon.Warning);
     }
 }
 public frmAnaMenuProgressBarLoading()
 {
     InitializeComponent();
     frmUyeGirisi = new frmUyeGirisi();
     frmUyeGirisi.frmAnaMenuProgressBarLoading = this;
 }