private void lblIntervention_Click(object sender, EventArgs e) { Affichage.Controls.Clear(); PasserIntervationFrm frm = new PasserIntervationFrm(); frm.Parent = Affichage; }
private void cmdLoadData_Click(object sender, EventArgs e) { try { malade.Id = clsDoTraitement.IdMalade; clsDoTraitement.idMalade_hospitalisation = malade.Id; clsDoTraitement.idMalade_Intervention = malade.Id; lblNomMalade.Text = clsDoTraitement.doubleclic_nom_malade; try { pbPhotoPersonne.Image = clsDoTraitement.GetInstance().getImageFromByte(clsMetier.GetInstance().getClsmalade1(malade.Id).Photo); } catch (Exception) { } if (rdHospitalisation.Checked) { clsDoTraitement.blnAutresFraisActivate = false; clsDoTraitement.blnMvtHospitalisationActivate = true; clsDoTraitement.blnConsomationActivate = false; Affichage.Controls.Clear(); Hospitalisation frm = new Hospitalisation(); frm.Parent = Affichage; } else if (rdIntervention.Checked)//(blnPassationInstervention == true) { Affichage.Controls.Clear(); PasserIntervationFrm frm = new PasserIntervationFrm(); frm.Parent = Affichage; } } catch (Exception) { } }