private void btnUyeDuzenle_Click(object sender, EventArgs e)
        {
            if (dataGridView1.SelectedRows.Count <= 0)
            {
                MessageBox.Show("Hiçbir üye seçilmedi.");
                return;
            }

            int index = dataGridView1.SelectedCells[0].RowIndex;
            DataGridViewRow selected = dataGridView1.Rows[index];

            frmUyeDuzenle form = new frmUyeDuzenle();
            form.UyeAdi = selected.Cells["Adı"].Value.ToString();
            form.UyeSoyAdi = selected.Cells["Soyadı"].Value.ToString();
            form.UyeId = (int)selected.Cells["uye_id"].Value;
            form.ShowDialog();
        }
        private void btnUyeDuzenle_Click(object sender, EventArgs e)
        {
            if (dataGridView1.SelectedRows.Count <= 0)
            {
                MessageBox.Show("Hiçbir üye seçilmedi.");
                return;
            }

            int             index    = dataGridView1.SelectedCells[0].RowIndex;
            DataGridViewRow selected = dataGridView1.Rows[index];

            frmUyeDuzenle form = new frmUyeDuzenle();

            form.UyeAdi    = selected.Cells["Adı"].Value.ToString();
            form.UyeSoyAdi = selected.Cells["Soyadı"].Value.ToString();
            form.UyeId     = (int)selected.Cells["uye_id"].Value;
            form.ShowDialog();
        }