private void form2yegecis_Click(object sender, EventArgs e) { anasayfaForm kullaniciForm = new anasayfaForm(kuAd, kuSoyad); //kullanici adsoyad gonderme kullaniciForm.Show(); this.Hide(); }
public void anasayfayadon() { anasayfaForm kullaniciForm = new anasayfaForm(kAd, kSoyad); //kullanici adsoyad gonderme kullaniciForm.Show(); this.Hide(); }
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(); }
private void don_Click(object sender, EventArgs e) { anasayfaForm form2yegit = new anasayfaForm(kad, ksoyad); form2yegit.Show(); this.Hide(); }