Added code to raise an error if trying to paste a step in reference to a step that has been deleted by another user (eg: paste before, paste after or paste replace)
Added handlers for new treeview events of NodeCopy and ClipboardStatus Added exception handlers to handle the exception of trying to use a deleted step as a reference point for a paste operation (before, after or replace) Added code to set the MyCopyStep property to the value of the new step added in a paste replace operation
This commit is contained in:
@@ -245,7 +245,9 @@ namespace VEPROMS
|
||||
tv.InsertItemInfo += new vlnTreeViewItemInfoInsertEvent(tv_InsertItemInfo);
|
||||
tv.NodeInsert += new vlnTreeViewEvent(tv_NodeInsert);
|
||||
tv.PasteItemInfo += new vlnTreeViewItemInfoPasteEvent(tv_PasteItemInfo);
|
||||
tc.ItemPaste += new StepPanelItemPastedEvent(tc_ItemPasted);
|
||||
tv.NodeCopy += new vlnTreeViewEvent(tv_NodeCopy);
|
||||
tv.ClipboardStatus += new vlnTreeViewClipboardStatusEvent(tv_ClipboardStatus);
|
||||
tc.ItemPaste += new StepPanelItemPastedEvent(tc_ItemPasted);
|
||||
displayHistory.HistorySelectionChanged += new DisplayHistoryEvent(displayHistory_HistorySelectionChanged);
|
||||
_CommentTitleBckColor = epAnnotations.TitleStyle.BackColor1.Color;
|
||||
if (!btnAnnoDetailsPushPin.Checked)
|
||||
@@ -280,7 +282,16 @@ namespace VEPROMS
|
||||
displayApplicability.ApplicabilityViewModeChanged += new DisplayApplicability.DisplayApplicabilityEvent(displayApplicability_ApplicabilityViewModeChanged);
|
||||
tv.ExportImportProcedureSets += new vlnTreeViewEvent(tv_ExportImportProcedureSets);
|
||||
}
|
||||
|
||||
ItemInfo tv_ClipboardStatus(object sender, vlnTreeEventArgs args)
|
||||
{
|
||||
return tc.MyCopyStep;
|
||||
}
|
||||
void tv_NodeCopy(object sender, vlnTreeEventArgs args)
|
||||
{
|
||||
VETreeNode tn = args.Node as VETreeNode;
|
||||
ItemInfo ii = tn.VEObject as ItemInfo;
|
||||
tc.MyCopyStep = ii;
|
||||
}
|
||||
void tv_ExportImportProcedureSets(object sender, vlnTreeEventArgs args)
|
||||
{
|
||||
FolderInfo fi = null;
|
||||
@@ -349,7 +360,7 @@ namespace VEPROMS
|
||||
}
|
||||
}
|
||||
|
||||
private void MakeDatabaseChanges()
|
||||
private void MakeDatabaseChanges()
|
||||
{
|
||||
// September 2012: Decided to store roimages as zipped. Any previous data may not have them zipped.
|
||||
// Check the top folders config to see, and if needed, zip them:
|
||||
|
Reference in New Issue
Block a user