Changed the code that was presenting a message that the step had been deleted when the step had not been deleted.

Allow a transition to be modified.  The current code does not allow an existing transition to be modified unless you change the Step Number of the destintation.
Add a hardspace bewteen multiple returns.  This assures that blank lines will be printed.
This commit is contained in:
Rich
2015-10-20 21:12:33 +00:00
parent abe3e723ea
commit e668a71b43
3 changed files with 81 additions and 36 deletions

View File

@@ -197,10 +197,22 @@ namespace Volian.Controls.Library
ContentAuditInfo cai = lbChanges.SelectedItem as ContentAuditInfo;
if (cai != null)
{
if (cai.DeleteStatus > 0 || (cai.DeleteStatus == 0 && cai.ActionWhen.Year == DateTime.MinValue.Year))
MessageBox.Show("This item has been deleted.","Deleted Item",MessageBoxButtons.OK,MessageBoxIcon.Exclamation);
// The following line was incorrectly showing a message stating that the item was deleted when it was noot.
//if (cai.DeleteStatus > 0 || (cai.DeleteStatus == 0 && cai.ActionWhen.Year == DateTime.MinValue.Year))
if (cai.DeleteStatus > 0)
MessageBox.Show("This item has been deleted.", "Deleted Item", MessageBoxButtons.OK, MessageBoxIcon.Exclamation);
else
OnHistorySelectionChanged(new DisplayHistoryEventArgs(cai.ItemID));
{
try
{
OnHistorySelectionChanged(new DisplayHistoryEventArgs(cai.ItemID));
}
// If the selected item is deleted display a message rather than crashing
catch (Exception ex)
{
MessageBox.Show("This item has been deleted.", "Deleted Item", MessageBoxButtons.OK, MessageBoxIcon.Exclamation);
}
}
}
else
{