void DisplayText()
{
if (_fileName != null && _fileName.Length > 0)
{
string textFormat = "{0}{1} - {2}";
string sReadOnly = ((DynamicFileByteProvider)hexBox.ByteProvider).ReadOnly
? strings.Readonly : "";
string text = Path.GetFileName(_fileName);
this.Text = string.Format(textFormat, text, sReadOnly, Program.SOFTWARENAME);
}
else
{
this.Text = Program.SOFTWARENAME;
}
}