Multi-Platform Package Manager for Stable Diffusion
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

20 lines
579 B

1 year ago
using Microsoft.Extensions.DependencyInjection;
using StabilityMatrix.Avalonia.Diagnostics.LogViewer.Core.ViewModels;
namespace StabilityMatrix.Avalonia.Diagnostics.ViewModels;
public class LogWindowViewModel
{
public LogViewerControlViewModel LogViewer { get; }
1 year ago
1 year ago
public LogWindowViewModel(LogViewerControlViewModel logViewer)
{
LogViewer = logViewer;
}
1 year ago
1 year ago
public static LogWindowViewModel FromServiceProvider(IServiceProvider services)
{
1 year ago
return new LogWindowViewModel(services.GetRequiredService<LogViewerControlViewModel>());
1 year ago
}
}