Exemplo n.º 1
0
 //=======================================================================================
 private void dgExpertiseList_CurrentCellChanged(object sender, EventArgs e)
 {
     try
     {
         CurrentExpertise = dgExpertiseList.CurrentCell.Item as ServiceReference1.myCurrentexpertises;
         GetInfoCurrExpertise(CurrentExpertise.id_expertise);
     }
     catch { }
 }
Exemplo n.º 2
0
        private void GetInfoCurrExpertise(int id_expertise)
        {
            ServiceReference1.myCurrentexpertises tmpExpertise = lCurrentExpertises.Where(p => p.id_expertise == id_expertise).FirstOrDefault();

            ltmpProjects = new List <ServiceReference1.myCurrentexpertisesProject>();
            ltmpProjects = tmpExpertise.ListProject.ToList();
            dgProjectList.ItemsSource = null;
            dgProjectList.ItemsSource = ltmpProjects;
            tblProjectCount.Text      = string.Format("Количество: {0}", ltmpProjects.Count());

            ltmpExperts = new List <string>();
            ltmpExperts = tmpExpertise.ListExperts.ToList();
            dgExpertList.ItemsSource = null;
            dgExpertList.ItemsSource = ltmpExperts;
        }