long candy ready to test
This commit is contained in:
@@ -0,0 +1,19 @@
|
||||
using MaterialSkin.Core.Controls;
|
||||
using VisionBuilder.UI.Common.Services;
|
||||
|
||||
namespace VisionBuilder.UI.Windows.Settings;
|
||||
|
||||
public class WindowsPasswordInputService: IPasswordInputService
|
||||
{
|
||||
public string GetPassword()
|
||||
{
|
||||
if (MaterialInputBox.Prompt("Password required", "", out var password, true) == DialogResult.OK)
|
||||
{
|
||||
return password;
|
||||
}
|
||||
else
|
||||
{
|
||||
return null;
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user