private void LoadAttachment_Click(object sender, EventArgs e)
{
try
{
if (DialogResult.OK == openFileDialog.ShowDialog())
{
using (var s = openFileDialog.OpenFile())
{
LoadFromFile(s);
}
}
}
catch (Exception ex)
{
MessageBox.Show(this, "Error when loading file: " + ex.ToString(), "Error from BEurtle", MessageBoxButtons.OK, MessageBoxIcon.Error);
}
}