123456789101112131415161718192021222324252627282930 |
- using YtYtAvalonia.Models;
- using YtYtAvalonia.Views;
- using YtYtAvalonia.ViewModels;
- using Avalonia.Controls;
- using ReactiveUI;
- using YtYtAvalonia.View;
- namespace YtYtAvalonia.ViewModels
- {
- public class MainWindowViewModel : ViewModelBase
- {
- #pragma warning disable CA1822 // Mark members as static
- public static SuharevaContext myConnection = new SuharevaContext();
- RegistrationViewModel regPage = new RegistrationViewModel(myConnection);
- public RegistrationViewModel RegPage { get => regPage; set => regPage = value; }
- #pragma warning restore CA1822 // Mark members as static
- public string Greeting => "Welcome to Avalonia!";
- // public UserControl Login { get => login; set => this.RaiseAndSetIfChanged(ref login, value); }
- //#pragma warning restore CA1822 // Mark members as static
- // private UserControl login = new LoginView();
- // public void LoadLoginView() => Login = new LoginView();
- }
- }
|