presence_new/Presence.Desktop/ViewModels/MainWindowViewModel.cs

20 lines
554 B
C#
Raw Normal View History

2024-12-13 07:21:14 +00:00
using System;
using System.Collections.Generic;
using System.Linq;
using System.Threading.Tasks;
using Microsoft.Extensions.DependencyInjection;
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();
public MainWindowViewModel(IServiceProvider serviceProvider)
{
var groupViewModel = serviceProvider.GetRequiredService<GroupViewModel>();
Router.Navigate.Execute(groupViewModel);
}
}
}