B2019-030 Use FlexableMesageBox instead of MessageBox so that it is always on top.
This commit is contained in:
@@ -7,6 +7,7 @@ using System.Drawing;
|
||||
using VEPROMS.CSLA.Library;
|
||||
using Volian.Controls.Library;
|
||||
using System.Windows.Forms;
|
||||
using JR.Utils.GUI.Forms;
|
||||
|
||||
namespace Volian.Controls.Library
|
||||
{
|
||||
@@ -59,7 +60,7 @@ namespace Volian.Controls.Library
|
||||
_MyStepPanel.SelectedEditItem = _MyStepPanel.GetEditItem(value);
|
||||
if (_MyStepPanel.SelectedEditItem == null)
|
||||
{
|
||||
MessageBox.Show("The selected item is not available in the editor. One possible cause is that the data is 'not editable', check the section properties 'Editable Data' checkbox.", "Inaccessible Data", MessageBoxButtons.OK, MessageBoxIcon.Exclamation);
|
||||
FlexibleMessageBox.Show("The selected item is not available in the editor. One possible cause is that the data is 'not editable', check the section properties 'Editable Data' checkbox.", "Inaccessible Data", MessageBoxButtons.OK, MessageBoxIcon.Exclamation);
|
||||
return;
|
||||
}
|
||||
if (_MyStepPanel.SelectedEditItem != null)
|
||||
@@ -283,15 +284,15 @@ namespace Volian.Controls.Library
|
||||
if (args.MyLinkText.LinkInfoText.IndexOf("Transition") > -1)
|
||||
{
|
||||
// B2018-002 - Invalid Transitions - Don't fail on invalid transition
|
||||
if(args.MyLinkText.MyTransitionInfo == null)
|
||||
{
|
||||
MessageBox.Show("This transition is invalid\r\n\r\nDelete it and replace it with \r\na valid transition", "Invalid Transition", MessageBoxButtons.OK, MessageBoxIcon.Exclamation);
|
||||
return; // Not a valid transition
|
||||
}
|
||||
if (args.MyLinkText.MyTransitionInfo == null)
|
||||
{
|
||||
FlexibleMessageBox.Show("This transition is invalid\r\n\r\nDelete it and replace it with \r\na valid transition", "Invalid Transition", MessageBoxButtons.OK, MessageBoxIcon.Exclamation);
|
||||
return; // Not a valid transition
|
||||
}
|
||||
ItemInfo item = args.MyLinkText.MyTranToItemInfo;
|
||||
if (item == null || item.MyDocVersion == null || (item.PreviousID == null && item.ItemPartCount == 0 && item.ItemDocVersionCount == 0))
|
||||
{
|
||||
MessageBox.Show("This transition is invalid", "Invalid Transition", MessageBoxButtons.OK, MessageBoxIcon.Exclamation);
|
||||
FlexibleMessageBox.Show("This transition is invalid", "Invalid Transition", MessageBoxButtons.OK, MessageBoxIcon.Exclamation);
|
||||
return; // Not a valid transition
|
||||
}
|
||||
_MyDisplayTabControl.OpenItem(item);
|
||||
|
Reference in New Issue
Block a user