123456789101112131415161718192021222324252627282930313233 |
- using Avalonia.Controls;
- using ReactiveUI;
- using Teachers.Models;
- namespace Teachers.ViewModels
- {
- public class MainWindowViewModel : ViewModelBase
- {
- #region Properties
- public static _43pTryaninaContext myConnection = new _43pTryaninaContext();
- public static MainWindowViewModel Instance; // создаем объект
- public MainWindowViewModel()
- {
- Instance = this; // инициализируем его в конструкторе
- }
- UserControl _us = new TeachersView();
- public UserControl Us
- {
- get => _us;
- set => this.RaiseAndSetIfChanged(ref _us, value);
- }
- #endregion
- //TeachersViewModel tvm = new();
- void a()
- {
- //tvm.TeachersList[0].GenderNavigation.Gender1
- }
- }
- }
|