sourcegit/src/SourceGit/ViewModels/DeleteRepositoryNode.cs
2024-03-20 02:38:28 -05:00

27 lines
No EOL
613 B
C#

using System.Threading.Tasks;
namespace SourceGit.ViewModels
{
public class DeleteRepositoryNode : Popup
{
public RepositoryNode Node
{
get => _node;
set => SetProperty(ref _node, value);
}
public DeleteRepositoryNode(RepositoryNode node)
{
_node = node;
View = new Views.DeleteRepositoryNode() { DataContext = this };
}
public override Task<bool> Sure()
{
Preference.RemoveNode(_node);
return null;
}
private RepositoryNode _node = null;
}
}