private void button1_Click(object sender, EventArgs e) { ENTITYOGRENCI ent = new ENTITYOGRENCI(); ent.AD = txtad.Text; ent.SOYAD = txtsoyad.Text; ent.FOTOGRAF = txtfotograf.Text; ent.KULUPID = Convert.ToInt16(txts1.Text); BLLOGRENCII.EKLE(ent); OGRENCILISTESI(); }
void OGRENCILISTESI() { List <ENTITYOGRENCI> ogrlist = BLLOGRENCII.LISTELE(); dataGridView1.DataSource = ogrlist; }