Files
mRemoteNG/mRemoteV1/UI/Controls/SecureTextBox.cs
2017-09-05 12:50:32 -04:00

24 lines
571 B
C#

using System.Security;
using mRemoteNG.Security;
using mRemoteNG.UI.Controls.Base;
namespace mRemoteNG.UI.Controls
{
public partial class SecureTextBox : NGTextBox
{
public SecureString SecString { get; private set; } = new SecureString();
public SecureTextBox()
{
InitializeComponent();
TextChanged += SecureTextBox_TextChanged;
}
private void SecureTextBox_TextChanged(object sender, System.EventArgs e)
{
SecString = Text.ConvertToSecureString();
}
}
}