private void ReadFile(string formatPath, string filePath) { FileReadingDialog dialog = new FileReadingDialog(); FormattedReader reader = new FormattedReader(formatPath); dialog.ReadingDone += Dialog_ReadingDone; dialog.ReadFile(reader, filePath); dialog.Show(this); dialog.Focus(); }