private void DraggableIcon_DoubleClick(object sender, EventArgs e)
{
try
{
using (var tsf = new TemporarySaveFile(this))
{
tsf.data.Close();
try
{
this.UseWaitCursor = true;
var result = System.Diagnostics.Process.Start(tsf.tempfilename);
result.WaitForInputIdle();
}
finally
{
this.UseWaitCursor = false;
}
}
}
catch (Exception ex)
{
MessageBox.Show(this, "Error when launching file: " + ex.ToString(), "Error from BEurtle", MessageBoxButtons.OK, MessageBoxIcon.Error);
}
}