コード例 #1
0
 private void TryDataProcess(string data, IPasswordValidator validator)
 {
     notifier.DisplayStep(counter++, data);
     try
     {
         if (validator.IsValidPassword(data))
         {
             isPasswordFound = true;
             successPassword = data;
             cancel.Cancel();
         }
     }
     catch (Exception e)
     {
         Console.WriteLine(e);
         isPasswordFound = true;
         successPassword = null;
         cancel.Cancel();
     }
 }