Files
Nebula-Auth/src/NebulaAuth/View/Dialogs/TextFieldDialog.xaml.cs
T

22 lines
459 B
C#

using MaterialDesignThemes.Wpf;
namespace NebulaAuth.View.Dialogs;
public partial class TextFieldDialog
{
public TextFieldDialog()
{
InitializeComponent();
}
public TextFieldDialog(string? title, string? msg)
{
InitializeComponent();
if (!string.IsNullOrWhiteSpace(title))
TitleHeader.Title = title;
if (!string.IsNullOrEmpty(msg))
HintAssist.SetHint(TextField, msg);
}
}