From 63483ed15be31974d63e97a4ab14bd62a07d7fad Mon Sep 17 00:00:00 2001 From: John Date: Fri, 15 Feb 2013 13:56:56 +0000 Subject: [PATCH] Added a message box to notify when there is a problem updating the formats --- PROMS/VEPROMS User Interface/frmVEPROMS.cs | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/PROMS/VEPROMS User Interface/frmVEPROMS.cs b/PROMS/VEPROMS User Interface/frmVEPROMS.cs index 0f3c4832..fabd469b 100644 --- a/PROMS/VEPROMS User Interface/frmVEPROMS.cs +++ b/PROMS/VEPROMS User Interface/frmVEPROMS.cs @@ -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();