Пример #1
0
        private void aj_tech_btn_Click(object sender, EventArgs e)
        {
            MessageBox.Show("Le technicien " + aj_nom_tech_txt.Text + " vient d'être crée");
            Technicien unTechnicien = new Technicien(aj_mat_tech_txt.Text, aj_nom_tech_txt.Text, aj_prenom_tech_txt.Text, aj_date_tech.Text, aj_mdp_tech_txt.Text, aj_formation_txt.Text, aj_intervention_txt.Text, aj_competences_txt.Text);

            Bd.ajoutTech(unTechnicien);


            listeTech = new List <Technicien>();

            bindingSource1 = new BindingSource();

            infos_tech.DataSource     = bindingSource1;
            bindingSource1.DataSource = Bd.selectTech();
        }
Пример #2
0
        private void button1_Click(object sender, EventArgs e)
        {
            Technicien unTechnicien = new Technicien(aj_mat_tech_txt.Text, aj_nom_tech_txt.Text, aj_prenom_tech_txt.Text, aj_date_tech.Text, aj_mdp_tech_txt.Text, aj_formation_txt.Text, aj_intervention_txt.Text, aj_competences_txt.Text);

            Bd.ajoutTech(unTechnicien);
        }