public void Import(IDocument document, string filename) { this._document = document; string text = this.ReadContentFromFile(filename); if (text.Length > 0) this.ReadTextToDocument(text); else { AODLWarning warning = new AODLWarning("Empty file. ["+filename+"]"); this.ImportError.Add(warning); } }