コード例 #1
0
        private void btnSubmit_Click(object sender, EventArgs e)
        {
            IGestionEmployes
            gestionEmployes = GestionEmployesBuilderClassFactory.getInterface();

            Ville ville = new Ville(0, textBoxCodeVille.Text, textBoxDescriptionVille.Text);

            gestionEmployes.createVille(ville);

            this.Close();
        }
コード例 #2
0
        private void button1_Click(object sender, EventArgs e)
        {
            IGestionEmployes
            gestionEmployes = GestionEmployesBuilderClassFactory.getInterface();

            int IdVille = Convert.ToInt32(textBoxIdVille.Text);
            string CodeVille = textBoxCodeVille.Text;
            string DescriptionVille = textBoxDescriptionVille.Text;
            Ville ville = new Ville(IdVille, CodeVille, DescriptionVille);

            gestionEmployes.updateVille(ville);

            this.Close();
        }