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:
@@ -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
|
||||
{
|
||||
|
Reference in New Issue
Block a user