EditAndAddEmployee.axaml.cs 696 B

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