public PagePatient(Patient _patient) { InitializeComponent(); if (_patient != null) { patient = _patient; modification = true; } else { patient = new Patient(null, null, false, DateTime.Now, null, null, null); modification = false; int id = PatientRepository.nouveauPatient(patient, -1); Tests tests = new Tests(); TestsRepository.nouveauxTests(patient.PatientId, tests); patient.PatientId = id; } PopUpContact.IdPatientActuel = patient.PatientId; InitialisationComposants(); Patient.Measure(new System.Windows.Size(double.PositiveInfinity, double.PositiveInfinity)); Patient.Arrange(new Rect(0, 0, Patient.DesiredSize.Width, Patient.DesiredSize.Height)); Fraterie.Width = GridTabControl.ColumnDefinitions[0].ActualWidth; Parents.Width = Arbre.ActualWidth; GrandsParents.Width = Arbre.ActualWidth; currentProche = new Proche("", "", 0, true, "", false, true, false); }