/// <summary> /// Evénement déclenché lors du Load du formulaire /// </summary> /// <param name="sender"></param> /// <param name="e"></param> private void frmAddEntry_Load(object sender, EventArgs e) { frm = (frmAppli)this.Owner; _infoParam = frm.GetParam(); p_isScheduled = false; lblErr.Text = ""; dateDebutPicker.Enabled = false; dateFinPicker.Enabled = false; chkFullDay.Enabled = false; txtHeureDebut.Text = "0800"; txtHeureFin.Text = "1700"; cmbPhotographe.Enabled = false; txtHeureDebut.Enabled = false; txtHeureFin.Enabled = false; chkConfirm.Enabled = false; if (cmbPhotographe.Items.Count == 0) { for (int i = 0; i < _infoParam.ListPhotographe.Count; i++) { cmbPhotographe.Items.Add(_infoParam.ListPhotographe[i].Nom); } } if (_infoParam.ListPhotographe.Count == 0) { grpRdv.Enabled = false; } typSecteur.SelectedIndex = 0; // Disponibilité chkDay1.Checked = true; chkDay2.Checked = true; chkDay3.Checked = true; chkDay4.Checked = true; chkDay5.Checked = true; }