MainWindowViewModel.cs 554 B

123456789101112131415161718
  1. using YtYtAvalonia.Models;
  2. using YtYtAvalonia.Views;
  3. using YtYtAvalonia.ViewModels;
  4. namespace YtYtAvalonia.ViewModels
  5. {
  6. public class MainWindowViewModel : ViewModelBase
  7. {
  8. #pragma warning disable CA1822 // Mark members as static
  9. public static SuharevaContext myConnection = new SuharevaContext();
  10. RegistrationViewModel regPage = new RegistrationViewModel(myConnection);
  11. public RegistrationViewModel RegPage { get => regPage; set => regPage = value; }
  12. #pragma warning restore CA1822 // Mark members as static
  13. }
  14. }