示例#1
0
 void PopulateDataGridViewliste_arret()// charger la liste des arrets imprévus
 {
     dataGridViewlistearret.AutoGenerateColumns = false;
     using (parametreEntities6 db = new parametreEntities6())
     {
         dataGridViewlistearret.DataSource = db.arretimprevu.ToList <arretimprevu>();
     }
 }
示例#2
0
 public void selection_type_arret()
 {
     if (dataGridViewlistearret.CurrentRow.Index != -1)
     {
         model.id = Convert.ToInt32(dataGridViewlistearret.CurrentRow.Cells["id"].Value);
         using (parametreEntities6 db = new parametreEntities6())
         {
             model = db.arretimprevu.Where(x => x.id == model.id).FirstOrDefault();
             selected_arret_type = model.arret;
         }
     }
 }