2024-12-04 19:33:12 +00:00
|
|
|
using System;
|
|
|
|
using Microsoft.Extensions.DependencyInjection;
|
|
|
|
using ReactiveUI;
|
|
|
|
|
|
|
|
namespace Presence.Desktop.ViewModels;
|
|
|
|
|
2024-12-23 15:12:32 +00:00
|
|
|
// public class MainWindowViewModel: ViewModelBase, IScreen
|
|
|
|
// {
|
|
|
|
// public RoutingState Router { get; } = new RoutingState();
|
|
|
|
|
|
|
|
// public MainWindowViewModel(IServiceProvider serviceProvider)
|
|
|
|
// {
|
|
|
|
// var groupViewModel = serviceProvider.GetRequiredService<GroupViewModel>();
|
|
|
|
// Router.Navigate.Execute(groupViewModel);
|
|
|
|
// }
|
|
|
|
// }
|
|
|
|
|
|
|
|
public class MainWindowViewModel : ViewModelBase, IScreen
|
2024-12-04 19:33:12 +00:00
|
|
|
{
|
|
|
|
public RoutingState Router { get; } = new RoutingState();
|
|
|
|
|
|
|
|
public MainWindowViewModel(IServiceProvider serviceProvider)
|
|
|
|
{
|
2024-12-23 15:12:32 +00:00
|
|
|
var startViewModel = new StartViewModel(this);
|
|
|
|
Router.Navigate.Execute(startViewModel);
|
2024-12-04 19:33:12 +00:00
|
|
|
}
|
|
|
|
}
|