ListTitle.cs 533 B

1234567891011121314151617181920212223
  1. using System;
  2. using System.Collections.Generic;
  3. using System.Collections.ObjectModel;
  4. using System.Linq;
  5. using System.Text;
  6. using System.Threading.Tasks;
  7. using LR1.Entities;
  8. using LR1.Model;
  9. namespace LR1.Model
  10. {
  11. public class ListTitle:ObservableCollection<Title>
  12. {
  13. public ListTitle()
  14. {
  15. var queryTitle = from title in Workers.DataEntitiesEmployee.Titles select title;
  16. foreach (Title titl in queryTitle)
  17. {
  18. this.Add(titl);
  19. }
  20. }
  21. }
  22. }