Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- using ReactiveUI;
- using MakeMyProject.Services;
- using System.IO;
- namespace MakeMyProject.ViewModels;
- public class MainWindowViewModel : ViewModelBase
- {
- ViewModelBase _content = new();
- private Helpers _hp = new();
- public MainWindowViewModel()
- {
- bool setup = JsonEngine.CreateSetupFile();
- if (!setup)
- {
- CreateNewUser();
- }
- else
- {
- // ShowLoginScreen();
- }
- }
- public void ShowTos()
- {
- var vm = new TermsOfServiceViewModel();
- Content = vm;
- }
- public void CreateNewUser()
- {
- var vm = new CreateNewUserViewModel(_hp);
- Content = vm;
- }
- public ViewModelBase Content
- {
- get => _content;
- set => this.RaiseAndSetIfChanged(ref _content, value);
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment