mirror of
https://github.com/Artemis-RGB/Artemis
synced 2026-11-11 11:26:27 +00:00
Another for #198 because I suck
This commit is contained in:
1 parent
b6a0cd7f28
commit
30662036a4
2 files changed
+8
-8
No files matched your search
@@ -16,8 +16,6 @@ namespace Artemis.Dialogs
|
||||
public static readonly DependencyProperty MarkdownProperty = DependencyProperty.Register("Markdown",
|
||||
typeof(string), typeof(MarkdownDialog), new PropertyMetadata(default(string)));
|
||||
|
||||
|
||||
|
||||
public MarkdownDialog(MetroWindow parentWindow)
|
||||
{
|
||||
ParentWindow = parentWindow;
|
||||
|
||||
@@ -60,13 +60,15 @@ namespace Artemis.Services
|
||||
if (window == null)
|
||||
return;
|
||||
|
||||
var dialog = new MarkdownDialog(window)
|
||||
window.Dispatcher.Invoke(() =>
|
||||
{
|
||||
Markdown = markdown,
|
||||
Title = title
|
||||
};
|
||||
|
||||
window.Dispatcher.Invoke(() => window.ShowMetroDialogAsync(dialog));
|
||||
var dialog = new MarkdownDialog(window)
|
||||
{
|
||||
Markdown = markdown,
|
||||
Title = title
|
||||
};
|
||||
return window.ShowMetroDialogAsync(dialog);
|
||||
});
|
||||
}
|
||||
|
||||
public override async Task<bool?> ShowQuestionMessageBox(string title, string message)
|
||||
|
||||
Reference in new issue
Block a user