private void ListeleriDoldur() { cmbTourPlaces.DisplayMember = "TurAdi"; cmbTourPlaces.ValueMember = "TuristikYerID"; cmbTourPlaces.DataSource = _turistikYerBLL.GelAllCities(); cmbTourLanguage.DisplayMember = "DilAdi"; cmbTourLanguage.ValueMember = "DilID"; cmbTourLanguage.DataSource = _dilBLL.GetAllLanguages(); }
private void TuristikYerUI_Load(object sender, EventArgs e) { if (flag == 1 || flag == 2) { lstAllPlaces.DisplayMember = "TurAdi"; lstAllPlaces.ValueMember = "TuristikYerID"; lstAllPlaces.DataSource = _turistikYerBLL.GelAllCities(); if (flag == 2) { btnRemove.Visible = true; btnAdd.Visible = false; btnUpdate.Visible = false; } else if (flag == 1) { btnRemove.Visible = false; btnAdd.Visible = false; btnUpdate.Visible = true; } } }