public void Read(string path) { Interfaces.IReader reader = new Readers.TxtReader(); Interfaces.IDocument doc = reader.Read(path); MessageBox.Show(doc.Document.Content.ToString()); }
//---------------------------------OLEG------------------------------ public async void ReadAsync(string path) { Interfaces.IReader reader = new Readers.TxtReader(); Interfaces.IDocument doc = await reader.ReadAsync(path); }