private IFileSource OpenFile(string file) { IFileSource fileSource = this.fileSourceFactory.CreateNew(); if (fileSource.LoadFile(file)) { return(fileSource); } else { return(null); } }