C2016-020: Improve Delete step prompt dialog text to include that enhanced step is deleted also, if linked

This commit is contained in:
Kathy Ruffing 2016-06-15 14:26:23 +00:00
parent aa7ef60129
commit e4573a6880

View File

@ -2531,6 +2531,8 @@ namespace Volian.Controls.Library
msgs = string.Format("Are you sure you want to delete this {0} and its substeps?", typeDescription); msgs = string.Format("Are you sure you want to delete this {0} and its substeps?", typeDescription);
else else
msgs = string.Format("Are you sure you want to delete this {0}?", typeDescription); msgs = string.Format("Are you sure you want to delete this {0}?", typeDescription);
if (stpi.HasEnhancedLinkedStep)
msgs = msgs + " The linked Enhanced step will also be deleted!";
//string msgs = stpi.HasChildren ? "Are you sure you want to delete this step and its substeps?" : "Are you sure you want to delete this step?"; //string msgs = stpi.HasChildren ? "Are you sure you want to delete this step and its substeps?" : "Are you sure you want to delete this step?";
DialogResult results = MessageBox.Show(msgs, "Verify Delete", MessageBoxButtons.YesNo, MessageBoxIcon.Question); DialogResult results = MessageBox.Show(msgs, "Verify Delete", MessageBoxButtons.YesNo, MessageBoxIcon.Question);
if (MyFlexGrid != null) if (MyFlexGrid != null)