public static ReaderBase GetReaderForFile(UI.DelegateManager delegateManager, string file) { var result = TiawpsReader.IsValid(delegateManager, file); if (!result.HasErrorOrCritical()) { return new TiawpsReader(delegateManager, file); } else { delegateManager.AddResult(result); return null; } }