C2020-018 made a more accurate description of the message for transitions when deleting a Procedure, Section, or Step
This commit is contained in:
@@ -1029,13 +1029,14 @@ namespace Volian.Controls.Library
|
||||
//private void HandleSqlExceptionOnDelete(System.Data.SqlClient.SqlException ex)
|
||||
private void HandleSqlExceptionOnDelete(Exception ex)
|
||||
{
|
||||
// C2020-018 made the messaging consistent in the message boxes
|
||||
if (ex.Message.Contains("has External Transitions and has no next step"))
|
||||
{
|
||||
using (TransitionInfoList exTrans = TransitionInfoList.GetExternalTransitions(MyID))
|
||||
{
|
||||
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" +
|
||||
"\r\n\r\nDo you want to be placed at the " + (exTrans.Count > 1 ? "first " : "") + "location with the problem Transition?" +
|
||||
"\r\n\r\nLocations with Problem Transitions" +
|
||||
exTrans.Summarize(),
|
||||
"Cannot Delete This Step", MessageBoxButtons.YesNo, MessageBoxIcon.Question);
|
||||
if (ans == DialogResult.Yes)
|
||||
@@ -1059,8 +1060,8 @@ namespace Volian.Controls.Library
|
||||
using (TransitionInfoList exTrans = TransitionInfoList.GetExternalTransitionsToChildren(MyID))
|
||||
{
|
||||
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" +
|
||||
"\r\n\r\nDo you want to be placed at the " + (exTrans.Count > 1 ? "first " : "") + "location with the problem Transition?" +
|
||||
"\r\n\r\nLocations with Problem Transitions" +
|
||||
exTrans.Summarize(),
|
||||
"Cannot Delete This Procedure", MessageBoxButtons.YesNo, MessageBoxIcon.Question);
|
||||
if (ans == DialogResult.Yes)
|
||||
@@ -1084,9 +1085,14 @@ namespace Volian.Controls.Library
|
||||
{
|
||||
using (TransitionInfoList exTrans = TransitionInfoList.GetExternalTransitionsToChildren(MyID))
|
||||
{
|
||||
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:" +
|
||||
//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\nLocations with Problem Transitions:" +
|
||||
// exTrans.Summarize(),
|
||||
// "Cannot Delete This Step", MessageBoxButtons.YesNo, MessageBoxIcon.Question);
|
||||
DialogResult ans = FlexibleMessageBox.Show("Transitions exist to the substeps of this step and cannot be adjusted automatically." +
|
||||
"\r\n\r\nDo you want to be placed at the " + (exTrans.Count > 1 ? "first " : "") + "location with the problem Transition?" +
|
||||
"\r\n\r\nLocations with Problem Transitions:" +
|
||||
exTrans.Summarize(),
|
||||
"Cannot Delete This Step", MessageBoxButtons.YesNo, MessageBoxIcon.Question);
|
||||
if (ans == DialogResult.Yes)
|
||||
|
Reference in New Issue
Block a user