private void FormMuayenGuncelle_Load(object sender, EventArgs e) { var result = te.MuayeneDoktor(labelGorunmezDoktor.Text); foreach (var h in result) { comboBox1.Items.Add(h.TCno); } }
private void button1_Click(object sender, EventArgs e) { var result = he.MuayeneDoktor(lblDoktorTC2.Text); dataGridViewMuayeneDoktor.DataSource = result.ToList(); }