Example #1
0
        private void buttonEnregistrer_Click(object sender, EventArgs e)
        {
            DataContextGestionNotesDataContext dc = new DataContextGestionNotesDataContext();

            noter laNote = comboBoxDevoir.SelectedItem as noter;

            if (laNote != null)
            {
                //laNote.note = textBoxNote.Text; //impossible de convertire string en double
            }

            dc.SubmitChanges();
        }
Example #2
0
        private void buttonEnregistrer_Click(object sender, EventArgs e)
        {
            DataContextGestionNotesDataContext dc = new DataContextGestionNotesDataContext();

            eleve EleveSelectionne = listBoxClasses.SelectedItem as eleve;

            if (EleveSelectionne != null)
            {
                EleveSelectionne.nom    = textBox1.Text;
                EleveSelectionne.prenom = textBox2.Text;
                EleveSelectionne.mail   = textBox3.Text;
                EleveSelectionne.mdp    = textBox4.Text;
            }
            dc.SubmitChanges();
        }