private void btn_selectpatient_Click(object sender, EventArgs e)
        {
            int ligne_selected = dgv_listepatients.CurrentCell.RowIndex;

            PatientMetier  patientmetier = new PatientMetier();
            List <Patient> lst_patients  = new List <Patient>();

            lst_patients = patientmetier.selectAllPatients();

            Patient v_patient_selected    = lst_patients[ligne_selected];
            string  v_id_patient_selected = v_patient_selected.id_patient;

            frm_envoyerdemande vEnvoyerdemande = new frm_envoyerdemande();

            frm_selectdonneespatient frmSelectdonneespatient = new frm_selectdonneespatient(v_id_patient_selected, vEnvoyerdemande);

            frmSelectdonneespatient.Show();
            this.Hide();
        }
Esempio n. 2
0
 public frm_selectdonneespatient(string v_id_patient_selected, frm_envoyerdemande vEnvoyerdemande)
 {
     v_id_patient_selected_global = v_id_patient_selected;
     InitializeComponent();
     this.v_frmenvoyerdemande = vEnvoyerdemande;
 }