mirror of
https://github.com/sourcegit-scm/sourcegit
synced 2025-05-23 13:14:59 +00:00
refactor(*): re-arrange project
This commit is contained in:
parent
7558bbd4f2
commit
5ce9cffcee
140 changed files with 4980 additions and 5003 deletions
|
@ -1,38 +0,0 @@
|
|||
using System;
|
||||
using System.Threading.Tasks;
|
||||
using System.Windows.Controls;
|
||||
|
||||
namespace SourceGit.UI {
|
||||
|
||||
/// <summary>
|
||||
/// General waiting dialog.
|
||||
/// </summary>
|
||||
public partial class Waiting : UserControl {
|
||||
|
||||
/// <summary>
|
||||
/// Constructor.
|
||||
/// </summary>
|
||||
public Waiting() {
|
||||
InitializeComponent();
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Show this dialog.
|
||||
/// </summary>
|
||||
/// <param name="repo"></param>
|
||||
/// <param name="job"></param>
|
||||
public static void Show(Git.Repository repo, Action job) {
|
||||
var dialog = new Waiting();
|
||||
var popup = repo.GetPopupManager();
|
||||
|
||||
popup?.Show(dialog);
|
||||
popup?.Lock();
|
||||
Task.Run(() => {
|
||||
job.Invoke();
|
||||
dialog.Dispatcher.Invoke(() => {
|
||||
popup?.Close(true);
|
||||
});
|
||||
});
|
||||
}
|
||||
}
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue