private void FormBiblio_Load(object sender, EventArgs e) { SetAllLibraries(); if (_libraries != null) { _currentLibrary = _libraries.First(); } SetAllAuthors(); BindAndSet(); }
private void FormLect_Load(object sender, EventArgs e) { SetAllLibraries(); if (_libraries != null) { _currentLibrary = _libraries.First(); } comboBoxLibChoice.DataSource = _libraries; comboBoxLibChoice.DisplayMember = "Name"; comboBoxLibChoice.ValueMember = "Id"; }
private void FormBiblio_Load(object sender, EventArgs e) { SetAllLibraries(); if (_libraries != null) { _currentLibrary = _libraries.First(); } if (_user.FirstName != null) { this.Text = string.Format("Bienvenue {0} !", _user.FirstName); } GetAllVolumes(); BindAndSet(); SwitchVolWish(); }
/// <summary> /// Choix de la librairie principale. /// </summary> /// <param name="sender"></param> /// <param name="e"></param> private void comboBoxLibChoice_SelectedIndexChanged(object sender, EventArgs e) { _currentLibrary = _libraries.Find(l => l == comboBoxLibChoice.SelectedItem); }
/// <summary> /// Etalbi la bibliothèque principale d'après le choix du combobox. /// </summary> /// <param name="sender"></param> /// <param name="e"></param> private void comboBoxLibChoice_SelectedIndexChanged(object sender, EventArgs e) { _currentLibrary = _libraries.Find(l => l == comboBoxLibChoice.SelectedItem); _bsCurrentLib.DataSource = _currentLibrary; dgvBiblioInfo.Refresh(); }
/// <summary> /// Change la librairie dont les retards sont récupérés. /// </summary> /// <param name="sender"></param> /// <param name="e"></param> private void comboBoxLibChoice_SelectedIndexChanged(object sender, EventArgs e) { ServiceReference.Library currentLibrary = _libraries.Find(l => l == comboBoxLibChoice.SelectedItem); GetRetardsByLib(currentLibrary.Id); }