EditAndAddProgramTemplate.axaml.cs 769 B

123456789101112131415161718192021
  1. using Avalonia.Controls;
  2. using AvaloniaApplication4.AdditionalModels;
  3. using AvaloniaApplication4.Models;
  4. using AvaloniaApplication4.ViewModels;
  5. namespace AvaloniaApplication4.Views.ActionPages
  6. {
  7. public partial class EditAndAddProgramTemplate : UserControl
  8. {
  9. public EditAndAddProgramTemplate(User? user, ref GlobalsData globalsData)
  10. {
  11. InitializeComponent();
  12. DataContext = new EditAndAddProgramTemplateViewModel(globalsData, user);
  13. }
  14. public EditAndAddProgramTemplate(User? user, ref GlobalsData globalsData, ProgramTemplate programTemplate)
  15. {
  16. InitializeComponent();
  17. DataContext = new EditAndAddProgramTemplateViewModel(globalsData, user, programTemplate);
  18. }
  19. }
  20. }