presence/Presence.Desktop/ViewModels/MainWindowViewModel.cs

16 lines
471 B
C#
Raw Permalink Normal View History

2024-12-05 08:26:58 +00:00
using System;
using Microsoft.Extensions.DependencyInjection;
2024-11-29 15:14:56 +00:00
using ReactiveUI;
2024-12-05 08:26:58 +00:00
namespace Presence.Desktop.ViewModels;
2024-11-29 15:14:56 +00:00
2024-12-05 08:26:58 +00:00
public class MainWindowViewModel: ViewModelBase, IScreen
{
public RoutingState Router { get; } = new RoutingState();
2024-11-29 15:14:56 +00:00
2024-12-05 08:26:58 +00:00
public MainWindowViewModel(IServiceProvider serviceProvider)
{
var groupViewModel = serviceProvider.GetRequiredService<GroupViewModel>();
Router.Navigate.Execute(groupViewModel);
2024-11-29 15:14:56 +00:00
}
}