private void btnMed_Click(object sender, EventArgs e) { FrmPratMed fm = new FrmPratMed(); fm.cbxPraticien.Visible = false; fm.titre.Visible = true; fm.titre.Text = "Consultation Médicament"; fm.cbxMedoc.Visible = true; fm.ShowDialog(); }
private void btnPraticien_Click(object sender, EventArgs e) { FrmPratMed fp = new FrmPratMed(); fp.cbxMedoc.Visible = false; fp.titre.Visible = true; fp.titre.Text = "Consultation Praticien"; fp.cbxPraticien.Visible = true; fp.ShowDialog(); }