-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Isaac Rolfe
authored and
Isaac Rolfe
committed
Aug 25, 2021
1 parent
cbd6a84
commit d29eb46
Showing
3 changed files
with
62 additions
and
9 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
using System.Threading.Tasks; | ||
using System.Windows; | ||
using MahApps.Metro.Controls; | ||
using MahApps.Metro.Controls.Dialogs; | ||
using MahApps.Metro.SimpleChildWindow; | ||
|
||
namespace JdaTools.Studio.Helpers | ||
{ | ||
public static class DialogueHelper | ||
{ | ||
public static MetroWindow MainWindow => (MetroWindow) Application.Current.MainWindow; | ||
public static Task ShowChildWindowAsync(ChildWindow childWindow) => | ||
MainWindow.ShowChildWindowAsync(childWindow); | ||
|
||
public static Task<string> ShowInputDialogue(string title, string message) | ||
{ | ||
|
||
return MainWindow.ShowInputAsync(title, message); | ||
} | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters