Esempio n. 1
0
        private void form2yegecis_Click(object sender, EventArgs e)
        {
            anasayfaForm kullaniciForm = new anasayfaForm(kuAd, kuSoyad); //kullanici adsoyad gonderme

            kullaniciForm.Show();
            this.Hide();
        }
Esempio n. 2
0
        public void anasayfayadon()
        {
            anasayfaForm kullaniciForm = new anasayfaForm(kAd, kSoyad); //kullanici adsoyad gonderme

            kullaniciForm.Show();
            this.Hide();
        }
Esempio n. 3
0
        private void button1_Click_1(object sender, EventArgs e)
        {
            SqlCommand    command;
            SqlDataReader reader;

            connection.Open();
            command = new SqlCommand("Select * From kullanicilar where kEmail='" + textBox1.Text + "' and kParola='" + textBox2.Text + "'", connection);
            reader  = command.ExecuteReader();

            if (reader.Read())
            {
                if (reader["kYetki"].ToString() == "0")
                {
                    MessageBox.Show("Admin", "Tebrikler", MessageBoxButtons.OK, MessageBoxIcon.Information);
                }
                else
                {
                    anasayfaForm kullaniciForm = new anasayfaForm(textBox1.Text, "");   //email gonderme
                    kullaniciForm.Show();
                    this.Hide();
                }
            }
            else
            {
                MessageBox.Show("Hatalı Giriş", "Error", MessageBoxButtons.OK, MessageBoxIcon.Error);
            }
            connection.Close();
        }
Esempio n. 4
0
        private void don_Click(object sender, EventArgs e)
        {
            anasayfaForm form2yegit = new anasayfaForm(kad, ksoyad);

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