private void WriteZipInTheTextBlock(string filePath) { using (RepoFile repo = new RepoFile()) { IEnumerable <string> myLines = repo.ExtractZipFiles(filePath); WriteInTextCountryInfo(myLines); } Dispatcher.Invoke(() => { }); }