Ejemplo n.º 1
0
 private void FormBiblio_Load(object sender, EventArgs e)
 {
     SetAllLibraries();
     if (_libraries != null)
     {
         _currentLibrary = _libraries.First();
     }
     SetAllAuthors();
     BindAndSet();
 }
Ejemplo n.º 2
0
 private void FormLect_Load(object sender, EventArgs e)
 {
     SetAllLibraries();
     if (_libraries != null)
     {
         _currentLibrary = _libraries.First();
     }
     comboBoxLibChoice.DataSource    = _libraries;
     comboBoxLibChoice.DisplayMember = "Name";
     comboBoxLibChoice.ValueMember   = "Id";
 }
Ejemplo n.º 3
0
 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();
 }
Ejemplo n.º 4
0
 /// <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);
 }
Ejemplo n.º 5
0
 /// <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();
 }
Ejemplo n.º 6
0
 /// <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);
 }