private void girisyap()
        {
            baglan.Open();
            SqlCommand    komut = new SqlCommand("Select *from KULLANICILAR", baglan);
            SqlDataReader oku   = komut.ExecuteReader();
            uyarı         uy    = new uyarı();

            while (oku.Read())
            {
                if (kullaniciadiTextBox.Text == oku["KULLANICI_ADI"].ToString() && sifreTextBox.Text == oku["ŞİFRE"].ToString() && oku["ROL_ID"].ToString() == "1")
                {
                    this.Close();
                    yoneticipanel yp = new yoneticipanel();
                    uy.l.Text = "Giriş Başarılı!";
                    uy.basariliyonetici();
                    this.Close();
                    baglan.Close();
                    return;
                }
            }

            uy.hata("Hatalı giriş yaptınız!");
            this.Close();
            yoneticiGiris yg = new yoneticiGiris();

            yg.Show();
            baglan.Close();
        }
        private void duzenle_button_Click(object sender, EventArgs e)
        {
            int x = 0;

            baglan.Open();
            SqlDataAdapter da    = new SqlDataAdapter("Select *from KULLANICILAR", baglan);
            DataTable      tablo = new DataTable();

            da.Fill(tablo);

            for (int i = 0; i < tablo.Rows.Count; i++)
            {
                if (uyeIslem_List.SelectedItems[0].SubItems[0].Text == tablo.Rows[i]["TC"].ToString())
                {
                    x = int.Parse(tablo.Rows[i]["ID"].ToString());
                }
            }
            baglan.Close();

            baglan.Open();
            string     kayit = "UPDATE KULLANICILAR SET TC=@TC ,AD=@AD,SOYAD=@SOYAD,EMAİL=@EMAİL,KULLANICI_ADI=@KULLANICI_ADI where ID=" + x + "";
            SqlCommand komut = new SqlCommand(kayit, baglan);

            komut.Parameters.AddWithValue("@TC", tcTextBox.Text);
            komut.Parameters.AddWithValue("@Ad", adTextBox.Text);
            komut.Parameters.AddWithValue("@SOYAD", soyadTextBox.Text);
            komut.Parameters.AddWithValue("@EMAİL", emailTextBox.Text);
            komut.Parameters.AddWithValue("@KULLANICI_ADI", kullanıcıadıTextBox.Text);
            komut.ExecuteNonQuery();
            baglan.Close();
            uyarı uy = new uyarı();

            uy.l.Text = "Üye Bilgileri Güncellendi.";
            uy.basariliyonetici();
            uyeIslem_List.Items.Clear();
            aramaTextBox.Clear();
            tcTextBox.Clear();
            adTextBox.Clear();
            soyadTextBox.Clear();
            emailTextBox.Clear();
            kullanıcıadıTextBox.Clear();
        }