예제 #1
0
 public override bool IsValid(object value)
 {
     if (value != null)
     {
         UserCritic[] users = UserCritic.GetByName(value.ToString());
         if (users == null)
         {
             return(true);
         }
     }
     return(false);
 }
예제 #2
0
 public override bool IsValid(object value)
 {
     if (value != null)
     {
         UserCritic[] users = UserCritic.GetByName(value.ToString());
         if (users == null || users[0].Username == ProfileCritic.Instance.CurrentUserCritic.Username)
         {
             return(true);
         }
     }
     return(false);
 }