ChangePasswordView.axaml.cs 977 B

12345678910111213141516171819202122232425262728293031323334
  1. using Acosta.Models;
  2. using Acosta.ViewModels;
  3. using Avalonia;
  4. using Avalonia.Controls;
  5. using Avalonia.Interactivity;
  6. using Avalonia.Markup.Xaml;
  7. using Acosta.Views;
  8. using Avalonia.Controls;
  9. using ReactiveUI;
  10. using Acosta.Models;
  11. using System.Linq;
  12. using System.Collections.Generic;
  13. using Microsoft.EntityFrameworkCore;
  14. using System.Collections.Immutable;
  15. using System.Collections.ObjectModel;
  16. namespace Acosta.Views;
  17. public partial class ChangePasswordView : UserControl
  18. {
  19. SuharevaContext myConnection;
  20. AuthorizationViewModel authorizationVM = new AuthorizationViewModel();
  21. public AuthorizationViewModel AuthorizationVM { get => authorizationVM; set => authorizationVM = value; }
  22. public ChangePasswordView()
  23. {
  24. InitializeComponent();
  25. }
  26. /*public void cp(Employee? currentUser)
  27. {
  28. int curUsId = currentUser.Employeesid;
  29. UserViewModel userVM = new UserViewModel(myConnection, curUsId, tbNewPas.Text, currentUser);
  30. }*/
  31. }