コード例 #1
0
ファイル: DeleteNodesAction.cs プロジェクト: rfellers/pwiz
 private static void DeleteDocNodes(SkylineWindow skylineWindow, HashSet <IdentityPath> identityPaths)
 {
     if (null != skylineWindow)
     {
         List <IdentityPath> deletedNodePaths = null;
         skylineWindow.ModifyDocument(Resources.SkylineViewContext_DeleteDocNodes_Delete_items,
                                      doc => DeleteNodes(doc, identityPaths, out deletedNodePaths),
                                      docPair => SkylineWindow.CreateDeleteNodesEntry(docPair,
                                                                                      deletedNodePaths.Select(i => AuditLogEntry.GetNodeName(docPair.OldDoc, docPair.OldDoc.FindNode(i)).ToString()), deletedNodePaths.Count));
     }
 }