2024-11-25 10:47:17 +00:00
|
|
|
using System;
|
2024-12-04 08:11:13 +00:00
|
|
|
using Microsoft.Extensions.DependencyInjection;
|
|
|
|
using ReactiveUI;
|
2024-11-25 10:47:17 +00:00
|
|
|
|
2024-12-04 08:11:13 +00:00
|
|
|
namespace Presence.Desktop.ViewModels;
|
2024-11-25 10:47:17 +00:00
|
|
|
|
2024-12-04 08:11:13 +00:00
|
|
|
public class MainWindowViewModel: ViewModelBase, IScreen
|
|
|
|
{
|
|
|
|
public RoutingState Router { get; } = new RoutingState();
|
2024-11-25 10:47:17 +00:00
|
|
|
|
2024-12-04 08:11:13 +00:00
|
|
|
public MainWindowViewModel(IServiceProvider serviceProvider)
|
|
|
|
{
|
|
|
|
var groupViewModel = serviceProvider.GetRequiredService<GroupViewModel>();
|
|
|
|
Router.Navigate.Execute(groupViewModel);
|
2024-11-22 12:18:04 +00:00
|
|
|
}
|
2024-12-04 08:11:13 +00:00
|
|
|
}
|