Geodatabase Designer
bin\Utility.cls

' Copyright 2008 ESRI
' 
' All rights reserved under the copyright laws of the United States
' and applicable international laws, treaties, and conventions.
' 
' You may freely redistribute and use this sample code, with or
' without modification, provided you include the original copyright
' notice and use restrictions.
' 
' See use restrictions at <your ArcGIS install location>/developerkit/userestrictions.txt.
' 




Option Explicit

Private Const CAPTION As String = "Utility"

Implements IMenuDef

Private Sub Class_Initialize()
    '
End Sub

Private Sub Class_Terminate()
    '
End Sub

Private Property Get IMenuDef_Caption() As String
    IMenuDef_Caption = CAPTION
End Property

Private Sub IMenuDef_GetItemInfo(ByVal pos As Long, ByVal itemDef As esriSystemUI.IItemDef)
    Select Case pos
    Case 0
        itemDef.ID = "GDBDesigner.GeometricNetworkEditor"
        itemDef.Group = False
    Case 1
        itemDef.ID = "GDBDesigner.TruncateGeodatabase"
        itemDef.Group = False
    End Select
End Sub

Private Property Get IMenuDef_ItemCount() As Long
    IMenuDef_ItemCount = 2
End Property

Private Property Get IMenuDef_Name() As String
    IMenuDef_Name = "GeodatabaseDesigner_Utility"
End Property