private void SelectFileButtonClick(object sender, EventArgs e) { var filePath = SelectFileDialog(); if (string.IsNullOrEmpty(filePath)) { return; } SelectedFile.Text = filePath; DataBox.ResetText(); DataBox.Text = string.Join(string.Empty, Format.Lines(File.ReadAllBytes(filePath))); }