EditAndAddSubject.axaml.cs 744 B

12345678910111213141516171819202122
  1. using Avalonia.Controls;
  2. using AvaloniaApplication4.AdditionalModels;
  3. using AvaloniaApplication4.Models;
  4. using AvaloniaApplication4.ViewModels;
  5. using System.Reactive.Subjects;
  6. namespace AvaloniaApplication4.Views.ActionPages
  7. {
  8. public partial class EditAndAddSubject : UserControl
  9. {
  10. public EditAndAddSubject(User? user, ref GlobalsData globalsData)
  11. {
  12. InitializeComponent();
  13. DataContext = new EditAndAddSubjectViewModel(globalsData, user);
  14. }
  15. public EditAndAddSubject(User? user, ref GlobalsData globalsData, Models.Subject subject)
  16. {
  17. InitializeComponent();
  18. DataContext = new EditAndAddSubjectViewModel(globalsData, user, subject);
  19. }
  20. }
  21. }