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