示例#1
0
 private bool CheckTaskResult(string taskName, string message, string checkString)
 {
     if (ResultText.Contains(checkString))
     {
         if (MessageBox.Show(message, taskName, MessageBoxButton.YesNo, MessageBoxImage.Warning) == MessageBoxResult.No)
         {
             return(false);
         }
     }
     return(true);
 }