예제 #1
0
        private void LoadDataToCombobox(int argInt)
        {
            IBatch facultyObj = new BatchService(new Data.WpfDbContext());
            Batch  populate   = facultyObj.GetBatchDetails(argInt);

            IFaculty entity      = new FacultyService(new Data.WpfDbContext());
            var      facultyList = entity.GetDetails();

            //select from observe collections
            //CmbSelectedValue = populate.FacultyId;

            if (facultyList.Any(p => p.Id == populate.FacultyId))
            {
                BatchInstance = populate;
            }
        }