presence/Presence.Desktop/ViewModels/MainWindowViewModel.cs

16 lines
457 B
C#
Raw Normal View History

2024-12-18 07:19:58 +00:00
using System;
using Microsoft.Extensions.DependencyInjection;
2024-12-02 10:04:59 +00:00
using ReactiveUI;
2024-11-24 18:05:17 +00:00
2024-12-18 07:19:58 +00:00
namespace Presence.Desktop.ViewModels;
2024-12-16 04:10:04 +00:00
2024-12-18 07:19:58 +00:00
public class MainWindowViewModel : ViewModelBase, IScreen
{
public RoutingState Router { get; } = new RoutingState();
2024-12-16 04:10:04 +00:00
2024-12-18 07:19:58 +00:00
public MainWindowViewModel(IServiceProvider serviceProvider)
{
var groupViewModel = serviceProvider.GetRequiredService<GroupViewModel>();
Router.Navigate.Execute(groupViewModel);
2024-11-24 18:05:17 +00:00
}
2024-12-16 04:10:04 +00:00
}