Added a message box to notify when there is a problem updating the formats

This commit is contained in:
John Jenko 2013-02-15 13:56:56 +00:00
parent 32765615c6
commit 63483ed15b

View File

@ -2042,7 +2042,11 @@ namespace VEPROMS
bottomProgBar.Maximum = int.Parse(args.Status.Split(" ".ToCharArray())[0]);
}
else
if(!args.Status.Contains("SubFormat"))bottomProgBar.Value++;
{
if (args.Status.StartsWith("Error"))
MessageBox.Show(args.Status, "Error Loading Format", MessageBoxButtons.OK, MessageBoxIcon.Error);
else if (!args.Status.Contains("SubFormat")) bottomProgBar.Value++;
}
bottomProgBar.Text = args.Status;
bottomProgBar.TextVisible = true;
Application.DoEvents();