Ejemplo n.º 1
0
 private void refreshEntityList()
 {
     try
     {
         List <Entities> entityList = EntityFunctions.AllowedEntities(Globals.MyStaffID);
         EntityCombo.ItemsSource = entityList;
         int currentIndex = entityList.FindIndex(el => el.ID == Globals.CurrentEntity.ID);
         EntityCombo.SelectedValue = entityList.ElementAt(currentIndex);
     }
     catch (Exception generalException) { MessageFunctions.Error("Error populating Entities list", generalException); }
 }