private void btnBosOda_Click(object sender, EventArgs e) { cmbOdaNo.DataSource = OdaController.BosOdalariGetir(); cmbOdaNo.DisplayMember = "OdaNumarasi"; cmbOdaNo.ValueMember = "OdaID"; }
void BosOdalariGetir() { cmbOdaNo.DataSource = OdaController.BosOdalariGetir(); cmbOdaNo.DisplayMember = "OdaNumarasi"; cmbOdaNo.ValueMember = "OdaID"; }