Esempio n. 1
0
        private void comboBoxDevoir_SelectedIndexChanged(object sender, EventArgs e)
        {
            eleve  EleveSelectionne = listBoxEleve.SelectedItem as eleve;
            devoir lesDevoirs       = comboBoxDevoir.SelectedItem as devoir;


            DataContextGestionNotesDataContext dc = new DataContextGestionNotesDataContext();

            var laNote = (from b in dc.noter
                          where b.id_devoir == lesDevoirs.id_devoir && b.id_eleve == EleveSelectionne.id_eleve
                          select b).ToList();

            textBoxNote.Text = " ";
            if (laNote != null)
            {
                foreach (var n in laNote)
                {
                    textBoxNote.Text = n.note.ToString();
                }
            }
        }
Esempio n. 2
0
 private void detach_devoir(devoir entity)
 {
     this.SendPropertyChanging();
     entity.matiere = null;
 }
Esempio n. 3
0
 private void attach_devoir(devoir entity)
 {
     this.SendPropertyChanging();
     entity.matiere = this;
 }
Esempio n. 4
0
 partial void Deletedevoir(devoir instance);
Esempio n. 5
0
 partial void Updatedevoir(devoir instance);
Esempio n. 6
0
 partial void Insertdevoir(devoir instance);