23 lines
509 B
C#
23 lines
509 B
C#
using System;
|
|
using domain.UseCase;
|
|
using Microsoft.Extensions.DependencyInjection;
|
|
using ReactiveUI;
|
|
|
|
namespace Presence.Desktop.ViewModels;
|
|
|
|
public class MainWindowViewModel : ViewModelBase, IScreen
|
|
{
|
|
public RoutingState Router { get; } = new RoutingState();
|
|
|
|
public MainWindowViewModel(IServiceProvider serviceProvider)
|
|
{
|
|
var groupUseCase = serviceProvider.GetRequiredService<GroupUseCase>();
|
|
|
|
Router.Navigate.Execute(new GroupViewModel (this, groupUseCase));
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
} |