semesterWork/Presence.Desktop/ViewModels/MainWindowViewModel.cs

16 lines
457 B
C#
Raw Permalink Normal View History

2024-12-08 15:00:30 +00:00
using System;
using Microsoft.Extensions.DependencyInjection;
2024-12-07 15:33:26 +00:00
using ReactiveUI;
2024-12-07 13:38:28 +00:00
2024-12-08 15:00:30 +00:00
namespace Presence.Desktop.ViewModels;
2024-12-07 15:33:26 +00:00
2024-12-08 15:00:30 +00:00
public class MainWindowViewModel : ViewModelBase, IScreen
{
public RoutingState Router { get; } = new RoutingState();
2024-12-07 13:38:28 +00:00
2024-12-08 15:00:30 +00:00
public MainWindowViewModel(IServiceProvider serviceProvider)
{
var groupViewModel = serviceProvider.GetRequiredService<GroupViewModel>();
Router.Navigate.Execute(groupViewModel);
2024-12-07 13:38:28 +00:00
}
2024-12-08 15:00:30 +00:00
}