Leaked source code of windows server 2003
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

68 lines
3.4 KiB

  1. 'Private Sub FilenameList_LostFocus(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles FilenameList.LostFocus
  2. ' UpdateFilenames()
  3. 'End Sub
  4. 'Private Sub RefreshSelectedFilenameTree_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) handles Refr
  5. ' SelectedComponentTree.Nodes.Clear()
  6. ' XComponent2SelectedComponentNode.Clear()
  7. ' UpdateSelectedComponents()
  8. 'End Sub
  9. '#If 0 Then
  10. ' If XComponent2SelectedComponentNode(Component) Is Nothing Then
  11. ' ComponentNode = SelectedComponentTree.Nodes.Add(Component.DisplayName)
  12. ' XComponent2SelectedComponentNode(Component) = ComponentNode
  13. ' XSelectedComponentNode2Component(ComponentNode) = Component
  14. ' If XComponent2FilenameList(Component) Is Nothing Then
  15. ' FileNode = ComponentNode.Nodes.Add("(component not yet unkooked)")
  16. ' Dim NodeFont As Font
  17. ' NodeFont = FileNode.NodeFont
  18. ' If NodeFont Is Nothing Then
  19. ' NodeFont = SelectedComponentTree.Font
  20. ' End If
  21. ' FileNode.NodeFont = New Font(NodeFont, NodeFont.Style + FontStyle.Italic)
  22. ' Else
  23. ' For Each Filename In XComponent2FilenameList(Component)
  24. ' FileNode = ComponentNode.Nodes.Add(Filename)
  25. ' If Filenames.ContainsKey(Filename) Then
  26. ' Dim NodeFont As Font
  27. ' NodeFont = FileNode.NodeFont
  28. ' If NodeFont Is Nothing Then
  29. ' NodeFont = SelectedComponentTree.Font
  30. ' End If
  31. ' FileNode.NodeFont = New Font(NodeFont, NodeFont.Style + FontStyle.Bold)
  32. ' End If
  33. ' Next
  34. ' End If
  35. ' End If
  36. ' If Not XObject2NodeList(Component) Is Nothing Then
  37. ' For Each ComponentNode In XObject2NodeList(Component)
  38. ' ComponentNode.Checked = True
  39. ' Next
  40. ' End If
  41. ' Next
  42. ' ' remove nodes for components no longer selected
  43. ' Dim Marked As ArrayList : Marked = New ArrayList()
  44. ' For Each Component In XComponent2SelectedComponentNode.Keys
  45. ' If Not SelectedComponents.ContainsKey(Component) Then
  46. ' Marked.Add(Component)
  47. ' ComponentNode = XComponent2SelectedComponentNode(Component)
  48. ' SelectedComponentTree.Nodes.Remove(ComponentNode)
  49. ' XSelectedComponentNode2Component.Remove(ComponentNode)
  50. ' End If
  51. ' Next
  52. ' For Each Component In Marked
  53. ' XComponent2SelectedComponentNode.Remove(Component)
  54. ' If Not XObject2NodeList(Component) Is Nothing Then
  55. ' For Each ComponentNode In XObject2NodeList(Component)
  56. ' ComponentNode.Checked = False
  57. ' Next
  58. ' End If
  59. ' Next
  60. ' If Marked.Count > 0 Then
  61. ' UpdateCheckedFiles()
  62. ' End If
  63. '#End If