mirror of
https://github.com/sourcegit-scm/sourcegit
synced 2025-05-24 05:35:00 +00:00
feature<SaveAsPatch>: show notification after saving patch successfully
This commit is contained in:
parent
a1bfbfe02e
commit
0a7a0bff42
8 changed files with 28 additions and 10 deletions
|
@ -10,14 +10,30 @@ namespace SourceGit.Views {
|
|||
private Action cbOK;
|
||||
private Action cbCancel;
|
||||
|
||||
public ConfirmDialog(string title, string message) {
|
||||
Owner = App.Current.MainWindow;
|
||||
|
||||
cbOK = null;
|
||||
cbCancel = null;
|
||||
|
||||
InitializeComponent();
|
||||
|
||||
txtTitle.Text = title;
|
||||
txtMessage.Text = message;
|
||||
btnCancel.Visibility = Visibility.Collapsed;
|
||||
}
|
||||
|
||||
public ConfirmDialog(string title, string message, Action onOk, Action onCancel = null) {
|
||||
Owner = App.Current.MainWindow;
|
||||
|
||||
cbOK = onOk;
|
||||
cbCancel = onCancel;
|
||||
|
||||
InitializeComponent();
|
||||
|
||||
txtTitle.Text = title;
|
||||
txtMessage.Text = message;
|
||||
|
||||
cbOK = onOk;
|
||||
cbCancel = onCancel;
|
||||
btnCancel.Visibility = Visibility.Visible;
|
||||
}
|
||||
|
||||
private void OnSure(object sender, RoutedEventArgs e) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue