This file contains hidden or 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
public static string ConvertToUnsecureString(this SecureString securePassword) | |
{ | |
if (securePassword == null) | |
throw new ArgumentNullException("securePassword"); | |
IntPtr unmanagedString = IntPtr.Zero; | |
try | |
{ | |
unmanagedString = Marshal.SecureStringToGlobalAllocUnicode(securePassword); | |
return Marshal.PtrToStringUni(unmanagedString); |
This file contains hidden or 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
public interface ILoginView | |
{ | |
string Username { get; set; } | |
string Password { get; set; } | |
bool RememberMe { get; } | |
event Action Login(); | |
event Action Exit(); | |
} |
NewerOlder