コード例 #1
0
 public list_empCompetences(GRHProjectEntities1 p_bd, COMPETENCE competences)
 {
     InitializeComponent();
     bd            = p_bd;
     bs.DataSource = bd.COMPETENCE.Include("LesEmployes");
     bs.Position   = bs.List.IndexOf(competences);
 }
コード例 #2
0
        private void dgv_comp_CellContentClick(object sender, DataGridViewCellEventArgs e)
        {
            if (dgv_comp.Columns[e.ColumnIndex].Name == "LesEmployes")
            {
                COMPETENCE lesComp = (COMPETENCE)(dgv_comp.CurrentRow.DataBoundItem);

                if (lesComp != null)
                {
                    list_empCompetences fcom = new list_empCompetences(bd, lesComp);
                    fcom.ShowDialog();
                }
            }
        }