Authorization.axaml.cs 489 B

1234567891011121314151617181920
  1. using Avalonia;
  2. using Avalonia.Controls;
  3. using Avalonia.Markup.Xaml;
  4. using TestRepeat.ViewModels;
  5. using TestRepeat.ViewModels.AuthorizationViewModel;
  6. namespace TestRepeat.Views;
  7. public partial class Authorization : UserControl
  8. {
  9. public Authorization()
  10. {
  11. InitializeComponent();
  12. DataContext = new AuthorizationViewModel();
  13. }
  14. public Authorization(string login, string password)
  15. {
  16. DataContext = new AuthorizationViewModel(login, password);
  17. }
  18. }