style: add .editorconfig for code formatting. see issu #25

This commit is contained in:
leo 2024-03-18 09:37:06 +08:00
parent a8eeea4f78
commit 18aaa0a143
225 changed files with 7781 additions and 3911 deletions

View file

@ -1,24 +1,29 @@
using System.Threading.Tasks;
namespace SourceGit.ViewModels {
public class DropStash : Popup {
namespace SourceGit.ViewModels
{
public class DropStash : Popup
{
public Models.Stash Stash { get; private set; }
public DropStash(string repo, Models.Stash stash) {
public DropStash(string repo, Models.Stash stash)
{
_repo = repo;
Stash = stash;
View = new Views.DropStash() { DataContext = this };
}
public override Task<bool> Sure() {
public override Task<bool> Sure()
{
ProgressDescription = $"Dropping stash: {Stash.Name}";
return Task.Run(() => {
return Task.Run(() =>
{
new Commands.Stash(_repo).Drop(Stash.Name);
return true;
});
}
private string _repo;
private readonly string _repo;
}
}
}