调用快速方法是:
QuickMethods.IsFullyEmpty(CompanyName.Text) ||
QuickMethods.IsFullyEmpty(UsernameText.Text) ||
QuickMethods.IsFullyEmpty(PasswordText.Password)
和实施是:
public static class QuickMethods
{
public static bool IsFullyEmpty(string s)
{
if (string.IsNullOrEmpty(s.Trim()))
return true;
return false;
}
}
有什么选择吗?如果是,那怎么办?