mirror of
https://github.com/Artemis-RGB/Artemis
synced 2026-01-01 02:03:32 +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",
|
public static readonly DependencyProperty MarkdownProperty = DependencyProperty.Register("Markdown",
|
||||||
typeof(string), typeof(MarkdownDialog), new PropertyMetadata(default(string)));
|
typeof(string), typeof(MarkdownDialog), new PropertyMetadata(default(string)));
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
public MarkdownDialog(MetroWindow parentWindow)
|
public MarkdownDialog(MetroWindow parentWindow)
|
||||||
{
|
{
|
||||||
ParentWindow = parentWindow;
|
ParentWindow = parentWindow;
|
||||||
|
|||||||
@ -60,13 +60,15 @@ namespace Artemis.Services
|
|||||||
if (window == null)
|
if (window == null)
|
||||||
return;
|
return;
|
||||||
|
|
||||||
var dialog = new MarkdownDialog(window)
|
window.Dispatcher.Invoke(() =>
|
||||||
{
|
{
|
||||||
Markdown = markdown,
|
var dialog = new MarkdownDialog(window)
|
||||||
Title = title
|
{
|
||||||
};
|
Markdown = markdown,
|
||||||
|
Title = title
|
||||||
window.Dispatcher.Invoke(() => window.ShowMetroDialogAsync(dialog));
|
};
|
||||||
|
return window.ShowMetroDialogAsync(dialog);
|
||||||
|
});
|
||||||
}
|
}
|
||||||
|
|
||||||
public override async Task<bool?> ShowQuestionMessageBox(string title, string message)
|
public override async Task<bool?> ShowQuestionMessageBox(string title, string message)
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user