diff --git a/PROMS/VEPROMS.CSLA.Library/Extension/ItemInsertExt.cs b/PROMS/VEPROMS.CSLA.Library/Extension/ItemInsertExt.cs index 05eb995a..99f28685 100644 --- a/PROMS/VEPROMS.CSLA.Library/Extension/ItemInsertExt.cs +++ b/PROMS/VEPROMS.CSLA.Library/Extension/ItemInsertExt.cs @@ -7,6 +7,7 @@ using System.Text.RegularExpressions; using Csla; using Csla.Data; using System.Windows.Forms; +using JR.Utils.GUI.Forms; namespace VEPROMS.CSLA.Library { @@ -39,7 +40,7 @@ namespace VEPROMS.CSLA.Library { using (TransitionInfoList exTrans = TransitionInfoList.GetExternalTransitionsToChildren(ItemID)) { - DialogResult ans = MessageBox.Show("Transitions exist to this step and cannot be adjusted automatically." + + DialogResult ans = FlexibleMessageBox.Show("Transitions exist to this step and cannot be adjusted automatically." + "\r\n\r\nDo you want to be placed on the " + (exTrans.Count > 1 ? "first " : "") + "substep with the problem Transition?" + "\r\n\r\nSubsteps with Problem Transitions" + exTrans.Summarize(), @@ -54,7 +55,7 @@ namespace VEPROMS.CSLA.Library { using (TransitionInfoList exTrans = TransitionInfoList.GetExternalTransitionsToChildren(ItemID)) { - DialogResult ans = MessageBox.Show("Transitions exist to this procedure and cannot be adjusted automatically." + + DialogResult ans = FlexibleMessageBox.Show("Transitions exist to this procedure and cannot be adjusted automatically." + "\r\n\r\nDo you want to be placed on the " + (exTrans.Count > 1 ? "first " : "") + "substep with the problem Transition?" + "\r\n\r\nSubsteps with Problem Transitions" + exTrans.Summarize(), @@ -69,7 +70,7 @@ namespace VEPROMS.CSLA.Library { using (TransitionInfoList exTrans = TransitionInfoList.GetExternalTransitionsToChildren(ItemID)) { - DialogResult ans = MessageBox.Show("Transitions exist to substeps of this step and cannot be adjusted automatically." + + DialogResult ans = FlexibleMessageBox.Show("Transitions exist to substeps of this step and cannot be adjusted automatically." + "\r\n\r\nDo you want to be placed on the " + (exTrans.Count > 1 ? "first " : "") + "substep with the problem Transition?" + "\r\n\r\nSubsteps with Problem Transitions:" + exTrans.Summarize(), diff --git a/PROMS/Volian.Controls.Library/EditItem.cs b/PROMS/Volian.Controls.Library/EditItem.cs index a2ae6aed..91961930 100644 --- a/PROMS/Volian.Controls.Library/EditItem.cs +++ b/PROMS/Volian.Controls.Library/EditItem.cs @@ -8,6 +8,7 @@ using System.Windows.Forms; using System.Text.RegularExpressions; using VEPROMS.CSLA.Library; using Volian.Base.Library; +using JR.Utils.GUI.Forms; namespace Volian.Controls.Library { @@ -833,7 +834,7 @@ namespace Volian.Controls.Library { using (TransitionInfoList exTrans = TransitionInfoList.GetExternalTransitions(MyID)) { - DialogResult ans = MessageBox.Show("Transitions exist to this step and cannot be adjusted automatically." + + DialogResult ans = FlexibleMessageBox.Show("Transitions exist to this step and cannot be adjusted automatically." + "\r\n\r\nDo you want to be placed on the " + (exTrans.Count > 1 ? "first " : "") + "substep with the problem Transition?" + "\r\n\r\nSubsteps with Problem Transitions" + exTrans.Summarize(), @@ -851,7 +852,7 @@ namespace Volian.Controls.Library { using (TransitionInfoList exTrans = TransitionInfoList.GetExternalTransitionsToChildren(MyID)) { - DialogResult ans = MessageBox.Show("Transitions exist to this procedure." + + DialogResult ans = FlexibleMessageBox.Show("Transitions exist to this procedure." + "\r\n\r\nDo you want to be placed on the " + (exTrans.Count > 1 ? "first " : "") + "substep with the problem Transition?" + "\r\n\r\nSubsteps with Problem Transitions" + exTrans.Summarize(), @@ -869,7 +870,7 @@ namespace Volian.Controls.Library { using (TransitionInfoList exTrans = TransitionInfoList.GetExternalTransitionsToChildren(MyID)) { - DialogResult ans = MessageBox.Show("Transitions exist to substeps of this step and cannot be adjusted automatically." + + DialogResult ans = FlexibleMessageBox.Show("Transitions exist to substeps of this step and cannot be adjusted automatically." + "\r\n\r\nDo you want to be placed on the " + (exTrans.Count > 1 ? "first " : "") + "substep with the problem Transition?" + "\r\n\r\nSubsteps with Problem Transitions:" + exTrans.Summarize(),