private void button4_Click(object sender, EventArgs e)
        {
            Uye     uye     = new Uye();
            UyeEkle uyeEkle = new UyeEkle(uye);

            uyeEkle.Show();
        }
Exemple #2
0
 private void button2_Click(object sender, EventArgs e)
 {
     if (dataGridView1.SelectedRows.Count == 0)
     {
         MessageBox.Show("secim yapınız");
     }
     else
     {
         Uye uye = new Uye();
         uye.Id               = Convert.ToInt32(dataGridView1.SelectedRows[0].Cells["Id"].Value);
         uye.uye_Adi          = dataGridView1.SelectedRows[0].Cells["uye_Adi"].Value.ToString();
         uye.uye_Soy_Adi      = dataGridView1.SelectedRows[0].Cells["uye_Soy_Adi"].Value.ToString();
         uye.okunan_KitapSayi = Convert.ToInt32(dataGridView1.SelectedRows[0].Cells["okunan_KitapSayi"].Value);
         UyeEkle uyeEkle = new UyeEkle(uye);
         uyeEkle.Show();
         yenile();
     }
 }