public void affichageStage(MStagiaire unContrat) { this.dateTimeFin.Value = unContrat.DateFin; this.dateTimeDebut.Value = unContrat.DateDebut; this.txtEcole.Text = unContrat.Ecole; this.txtMission.Text = unContrat.Mission; }
public void init() { this.txtNumContrat.Text = leContrat.NumeroContrat.ToString(); this.txtNumContrat.Enabled = false; this.dateTimeDebut.Enabled = false; this.dateTimeFin.Enabled = false; this.txtQualification.Text = leContrat.Qualification; this.txtQualification.Enabled = false; this.txtSalaireBrut.Text = leContrat.SalaireBrut.ToString(); this.txtSalaireBrut.Enabled = false; this.txtMotif.Enabled = false; this.txtAgence.Enabled = false; this.txtIndemnisation.Enabled = false; this.txtEcole.Enabled = false; this.txtMission.Enabled = false; if (leContrat is MCdi) { MCdi cdi = leContrat as MCdi; affichageCDI(cdi); } if (leContrat is MCdd) { MCdd cdd = leContrat as MCdd; affichageCDD(cdd); } if (leContrat is MInterim) { MInterim inter = leContrat as MInterim; affichageInterim(inter); } if (leContrat is MStagiaire) { MStagiaire stag = leContrat as MStagiaire; affichageStage(stag); } }