Пример #1
0
        private void button1_Click(object sender, EventArgs e)
        {
            string sorgu = "insert into Uye(uyeSirketAdi,uyeSirketTür,uyeSirketSehir,uyeKullaniciAdi,uyeSifre) Values('" + textBox1.Text + "','" + comboBox1.Text + "','" + textBox2.Text + "','" + textBox3.Text + "','" + textBox4.Text + "')";

            ConnectionQuerry.ExecuteQueries(sorgu);
            textBox1.Clear();
            comboBox1.Text = "";
            textBox2.Clear();
            textBox3.Clear();
            textBox4.Clear();
            MessageBox.Show("Kaydınız Başarıyla Yapıldı!");
            panel1.Visible = false;
            panel2.Visible = true;
        }
Пример #2
0
        private void Giris_Click(object sender, EventArgs e)
        {
            string        sorgu = "Select * From Uye Where uyeKullaniciAdi = '" + textBox5.Text + "'AND uyeSifre = '" + textBox6.Text + "'";
            SqlDataReader dr    = ConnectionQuerry.DataReader(sorgu);

            if (dr.Read())
            {
                this.Hide();
                fr2.Show();
            }
            else
            {
                MessageBox.Show("Giriş işlemi yapılamıyor");
            }
        }