mirror of
https://github.com/Artemis-RGB/Artemis
synced 2025-12-13 05:48:35 +00:00
Another for #198 because I suck
This commit is contained in:
parent
b6a0cd7f28
commit
30662036a4
@ -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)
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user