mirror of
https://github.com/sourcegit-scm/sourcegit
synced 2025-05-20 19:55:00 +00:00
27 lines
591 B
C#
27 lines
591 B
C#
using Avalonia.Collections;
|
|
using CommunityToolkit.Mvvm.ComponentModel;
|
|
|
|
namespace SourceGit.ViewModels
|
|
{
|
|
public class ViewLogs : ObservableObject
|
|
{
|
|
public AvaloniaList<CommandLog> Logs
|
|
{
|
|
get => _repo.Logs;
|
|
}
|
|
|
|
public CommandLog SelectedLog
|
|
{
|
|
get => _selectedLog;
|
|
set => SetProperty(ref _selectedLog, value);
|
|
}
|
|
|
|
public ViewLogs(Repository repo)
|
|
{
|
|
_repo = repo;
|
|
}
|
|
|
|
private Repository _repo = null;
|
|
private CommandLog _selectedLog = null;
|
|
}
|
|
}
|