UserViewModel.cs 866 B

1234567891011121314151617181920212223242526272829303132333435363738
  1. using Microsoft.Toolkit.Mvvm.Input;
  2. using System;
  3. using System.Collections.Generic;
  4. using System.Linq;
  5. using System.Text;
  6. using MyMoviesWPF.MVVM.View;
  7. namespace MyMoviesWPF.MVVM.ViewModel
  8. {
  9. public class UserViewModel : BaseViewModel
  10. {
  11. public RelayCommand<object> OpenMainSR
  12. {
  13. get => new RelayCommand<object>(o =>
  14. {
  15. MainSR sr = new MainSR();
  16. sr.Show();
  17. }
  18. );
  19. }
  20. //foreach (Window item in Application.Current.Windows)
  21. // {
  22. // if (item.DataContext == this) item.Close();
  23. // }
  24. //public RelayCommand LogInCommand
  25. //{
  26. // get { return _view; }
  27. // set
  28. // {
  29. // _view = value;
  30. // OnPropertyChanged();
  31. // }
  32. //}
  33. }
  34. }