Exemplo n.º 1
0
        private void btnRetourAjout_Click(object sender, EventArgs e)
        {
            GestionMedicament GestionMedicament = new GestionMedicament();

            GestionMedicament.Show();
            this.Hide();
        }
Exemplo n.º 2
0
        private void BtGestionMedicament_Click(object sender, EventArgs e)
        {
            GestionMedicament gestionMedicament_Frm = new GestionMedicament();

            gestionMedicament_Frm.Show();
            this.Hide();
        }
Exemplo n.º 3
0
        private void btnValidationAjoutMedic_Click(object sender, EventArgs e)
        {
            string nomMedicament = textBoxNomMedicAjout.Text;

            if (nomMedicament == string.Empty)
            {
                textBoxNomMedicAjout.Focus();
                errorProviderNomMedicament.SetError(textBoxNomMedicAjout, "Veuillez saisir le nom du médicament à ajouter");;
            }
            else
            {
                GestionMedicamentBLL.AjoutMedic(nomMedicament);
                MessageBox.Show("Le médicament a bien été ajouté");
                GestionMedicament GestionMedicament = new GestionMedicament();
                GestionMedicament.Show();
                this.Hide();
            }
        }