2024-12-13 07:21:14 +00:00
|
|
|
using System;
|
|
|
|
using System.Collections.Generic;
|
|
|
|
using System.Linq;
|
|
|
|
using System.Threading.Tasks;
|
2024-12-23 11:56:27 +00:00
|
|
|
using domain.UseCase;
|
2024-12-13 07:21:14 +00:00
|
|
|
using Microsoft.Extensions.DependencyInjection;
|
2024-12-23 11:56:27 +00:00
|
|
|
using presence.data.RemoteData.RemoteDataBase;
|
|
|
|
using presence.domain.UseCase;
|
2024-12-13 07:21:14 +00:00
|
|
|
using ReactiveUI;
|
2024-12-05 06:55:28 +00:00
|
|
|
|
2024-12-13 07:21:14 +00:00
|
|
|
namespace Presence.Desktop.ViewModels
|
2024-12-05 06:55:28 +00:00
|
|
|
{
|
2024-12-13 07:21:14 +00:00
|
|
|
public class MainWindowViewModel: ViewModelBase, IScreen
|
|
|
|
{
|
|
|
|
public RoutingState Router { get; } = new RoutingState();
|
|
|
|
|
2024-12-23 11:56:27 +00:00
|
|
|
public MainWindowViewModel(IServiceProvider serviceProvider)
|
|
|
|
{
|
|
|
|
var iGroupUseCase = serviceProvider.GetRequiredService<IGroupUseCase>();
|
|
|
|
var presenceUseCase = serviceProvider.GetRequiredService<PresenceUseCase>();
|
|
|
|
|
|
|
|
Router.Navigate.Execute(new GroupViewModel(iGroupUseCase, presenceUseCase, this));
|
|
|
|
}
|
2024-12-13 07:21:14 +00:00
|
|
|
}
|
|
|
|
}
|