本文整理汇总了C#中Interfaces.HideUI方法的典型用法代码示例。如果您正苦于以下问题:C# Interfaces.HideUI方法的具体用法?C# Interfaces.HideUI怎么用?C# Interfaces.HideUI使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类Interfaces
的用法示例。
在下文中一共展示了Interfaces.HideUI方法的2个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C#代码示例。
示例1: Deploy
public override void Deploy(Interfaces.IPasswordInterface ui, Interfaces.IUIHandler current)
{
base.Deploy(ui, current);
ui.Password = string.Empty;
ui.PasswordChar = '*';
string title = "Learn Password";
if (!string.IsNullOrWhiteSpace(Title))
{
title += " for " + Title;
}
ui.Title = title;
ui.Prompt = "Test Password";
ui.HideUI();
CheckChangeIntervalCount(ui);
}
示例2: ProcessValue
public override void ProcessValue(Interfaces.IPasswordInterface ui, string value)
{
string passwordText = value;
if (passwordText.Length == 0)
{
TextDisplay.ShowDialog("Password Entered Is Blank");
}
else
{
if (Hashing.GetHashSha256(passwordText) == StoredPassword)
{
ui.Password = null;
ui.HideUI();
SuccessfulCount = SuccessfulCount+1;
}
else
{
SuccessfulCount = 0;
TextDisplay.ShowDialog("Password Entered Is Not The Same Password");
}
CheckChangeIntervalCount(ui);
}
}