Пример #1
0
        private void lnkUyeOl(object sender, LinkLabelLinkClickedEventArgs e)
        {
            RegisterPanel registerPanel = new RegisterPanel();

            registerPanel.Show();
            this.Hide();
        }
Пример #2
0
        private void btnKayit_Click(object sender, EventArgs e)
        {
            if (chckAlici.Checked == false && chckSatici.Checked == false)
            {
                MessageBox.Show("Yetki türü boş olmamalıdır!");
                RegisterPanel registerPanel = new RegisterPanel();
                registerPanel.Show();
                this.Hide();
            }

            SqlCommand kayit = new SqlCommand("insert into KullaniciBilgileri (Ad,Soyad,KullaniciAdi,Sifre,KullaniciTcNo,KullaniciMail,Adres,Telefon,GuncelBakiye,YeniBakiye,AliciYetki,SaticiYetki) values (@p1,@p2,@p3,@p4,@p5,@p6,@p7,@p8,@p9,@p10,@p11,@p12)", sqlConnect.Connection());

            kayit.Parameters.AddWithValue("@p1", txtAd.Text);
            kayit.Parameters.AddWithValue("@p2", txtSoyad.Text);
            kayit.Parameters.AddWithValue("@p3", txtKullaniciAdi.Text);
            kayit.Parameters.AddWithValue("@p4", txtSifre.Text);
            kayit.Parameters.AddWithValue("@p5", txtTC.Text);
            kayit.Parameters.AddWithValue("@p6", txtMail.Text);
            kayit.Parameters.AddWithValue("@p7", txtAdres.Text);
            kayit.Parameters.AddWithValue("@p8", txtTelefon.Text);
            kayit.Parameters.AddWithValue("@p9", 0);
            kayit.Parameters.AddWithValue("@p10", 0);
            kayit.Parameters.AddWithValue("@p11", chckAlici.Checked);
            kayit.Parameters.AddWithValue("@p12", chckSatici.Checked);

            kayit.ExecuteNonQuery();
            sqlConnect.Connection().Close();
            MessageBox.Show("Kayit isleminiz basariyla gerceklestirilmistir");
            LoginPanel form1 = new LoginPanel();

            form1.Show();
            this.Hide();
        }