1
0
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:
SpoinkyNL 2016-11-17 18:48:44 +01:00
parent b6a0cd7f28
commit 30662036a4
2 changed files with 8 additions and 8 deletions

View File

@ -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;

View File

@ -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)