pr1/presence/Presence.Desktop/ViewModels/MainWindowViewModel.cs
2024-12-19 20:36:57 +03:00

18 lines
517 B
C#

using domain.UseCase;
using Microsoft.Extensions.DependencyInjection;
using ReactiveUI;
using System;
namespace Presence.Desktop.ViewModels
{
public class MainWindowViewModel : ViewModelBase, IScreen
{
public RoutingState Router { get; } = new RoutingState();
public MainWindowViewModel(IServiceProvider serviceProvider)
{
var groupViewModel = serviceProvider.GetRequiredService<GroupViewModel>();
Router.Navigate.Execute(groupViewModel);
}
}
}