pr1/presence/Presence.Desktop/ViewModels/MainWindowViewModel.cs

18 lines
517 B
C#
Raw Normal View History

2024-12-19 17:36:57 +00:00
using domain.UseCase;
using Microsoft.Extensions.DependencyInjection;
using ReactiveUI;
using System;
namespace Presence.Desktop.ViewModels
2024-12-05 09:30:01 +00:00
{
2024-12-19 17:36:57 +00:00
public class MainWindowViewModel : ViewModelBase, IScreen
2024-12-05 09:30:01 +00:00
{
2024-12-19 17:36:57 +00:00
public RoutingState Router { get; } = new RoutingState();
public MainWindowViewModel(IServiceProvider serviceProvider)
{
var groupViewModel = serviceProvider.GetRequiredService<GroupViewModel>();
Router.Navigate.Execute(groupViewModel);
}
2024-12-05 09:30:01 +00:00
}
2024-12-19 17:36:57 +00:00
}