private void frmReporting_Load(object sender, EventArgs e) { Log.Debug("Formulaire de Synchronisation Google..."); frm = (frmAppli)this.Owner; p_periode = frm.getPeriode(); lblInfoSaison.Text = String.Format("Saison {0} du {1} au {2}", p_periode.ToString(), p_periode.StartDate.ToString("dd/MM/yyyy"), p_periode.EndDate.ToString("dd/MM/yyyy")); TimeSpan p_tsheureDebut = new TimeSpan(00, 00, 0); TimeSpan p_tsheureFin = new TimeSpan(23, 59, 0); dateDebutPicker.Value = p_periode.StartDate.Date + p_tsheureDebut; dateFinPicker.Value = p_periode.EndDate.Date + p_tsheureFin; dateDebutPicker.MinDate = p_periode.StartDate; dateDebutPicker.MaxDate = p_periode.EndDate; dateFinPicker.MinDate = p_periode.StartDate; dateFinPicker.MaxDate = p_periode.EndDate; cmbTypeReport.Items.Add("Liste des écoles planifiées"); cmbTypeReport.SelectedIndex = 0; }
/// <summary> /// Chargement du Formulaire /// </summary> /// <param name="sender"></param> /// <param name="e"></param> private void frmSynchro_Load(object sender, EventArgs e) { Log.Debug("Formulaire de Synchronisation Google..."); frm = (frmAppli)this.Owner; p_periode = frm.getPeriode(); lblInfoSaison.Text = String.Format("Saison {0} du {1} au {2}", p_periode.ToString(), p_periode.StartDate.ToString("dd/MM/yyyy"), p_periode.EndDate.ToString("dd/MM/yyyy")); for (int i = 0; i < p_applClass.Param.ListPhotographe.Count; i++) { chkListPhoto.Items.Add(p_applClass.Param.ListPhotographe[i]); } TimeSpan p_tsheureDebut = new TimeSpan(00, 00, 0); TimeSpan p_tsheureFin = new TimeSpan(23, 59, 0); dateDebutPicker.Value = p_periode.StartDate.Date + p_tsheureDebut; dateFinPicker.Value = p_periode.EndDate.Date + p_tsheureFin; dateDebutPicker.MinDate = p_periode.StartDate; dateDebutPicker.MaxDate = p_periode.EndDate; dateFinPicker.MinDate = p_periode.StartDate; dateFinPicker.MaxDate = p_periode.EndDate; }