Example #1
0
 public void Perform()
 {
     SettingsForm.For(filesSettings).ShowDialog();
     filesSettings.CheckSettings().OnFail(error =>
     {
         MessageBox.Show(error);
         Perform();
     });
 }
Example #2
0
 public string CheckSettings_ReturnsResultWithError(string textFilePath, string boringWordsFilePath)
 {
     filesSettings.BoringWordsFilePath = boringWordsFilePath;
     filesSettings.TextFilePath        = textFilePath;
     return(filesSettings.CheckSettings().Error);
 }