StudentsTemplate.cs 874 B

1234567891011121314151617181920212223242526
  1. using AvaloniaApplication4.Models;
  2. using ReactiveUI;
  3. using System;
  4. using System.Collections.Generic;
  5. using System.Linq;
  6. using System.Text;
  7. using System.Threading.Tasks;
  8. namespace AvaloniaApplication4.AdditionalModels
  9. {
  10. /// <summary>
  11. /// шаблон для вкладки студенты (доп функция)
  12. /// </summary>
  13. internal class StudentsTemplate: ReactiveObject
  14. {
  15. private List<ProgramsWithStudent> studentsList = new List<ProgramsWithStudent>();
  16. public List<ProgramsWithStudent> StudentsList { get => studentsList; set => this.RaiseAndSetIfChanged(ref studentsList, value); }
  17. public RunningProgram Program { get; }
  18. public StudentsTemplate(RunningProgram program, List<ProgramsWithStudent> studentsList)
  19. {
  20. Program = program;
  21. StudentsList = studentsList;
  22. }
  23. }
  24. }