EditAndAddModule.axaml.cs 695 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 EditAndAddModule : UserControl
  8. {
  9. public EditAndAddModule(User? user, ref GlobalsData globalsData)
  10. {
  11. InitializeComponent();
  12. DataContext = new EditAndAddModuleViewModel(globalsData, user);
  13. }
  14. public EditAndAddModule(User? user, ref GlobalsData globalsData, Module module)
  15. {
  16. InitializeComponent();
  17. DataContext = new EditAndAddModuleViewModel(globalsData,user,module);
  18. }
  19. }
  20. }