MainWindowViewModel.cs 555 B

1234567891011121314151617181920212223
  1. using Avalonia.Controls;
  2. using ReactiveUI;
  3. using TeacheresAndCourses.Models;
  4. namespace TeacheresAndCourses.ViewModels
  5. {
  6. public class MainWindowViewModel : ViewModelBase
  7. {
  8. public static MainWindowViewModel Instance;
  9. public MainWindowViewModel()
  10. {
  11. Instance = this;
  12. }
  13. public static _43pSuharevaContext connection = new _43pSuharevaContext();
  14. UserControl uc = new TeachersPage();
  15. public UserControl Uc { get => uc; set => this.RaiseAndSetIfChanged(ref uc, value); }
  16. }
  17. }