示例#1
0
 private void CopyGuid(COMRegistryViewer.CopyGuidType copy_type)
 {
     if (listViewTypes.SelectedItems.Count > 0)
     {
         ListViewItemWithIid item = (ListViewItemWithIid)listViewTypes.SelectedItems[0];
         COMRegistryViewer.CopyGuidToClipboard(item.Iid, copy_type);
     }
 }
示例#2
0
 private void CopyIID(ListView view, COMRegistryViewer.CopyGuidType type)
 {
     if (view != null && view.SelectedIndices.Count > 0)
     {
         ListViewItem item = view.SelectedItems[0];
         Tuple <COMInterfaceInstance, COMInterfaceEntry> intf = item.Tag as Tuple <COMInterfaceInstance, COMInterfaceEntry>;
         COMRegistryViewer.CopyGuidToClipboard(intf.Item1.Iid, type);
     }
 }
示例#3
0
        private void CopyGuid(object sender, COMRegistryViewer.CopyGuidType copy_type)
        {
            ListView list = sender as ListView;

            if (list != null && list.SelectedItems.Count > 0)
            {
                ListViewItemWithGuid item = list.SelectedItems[0] as ListViewItemWithGuid;
                if (item != null)
                {
                    COMRegistryViewer.CopyGuidToClipboard(item.Guid, copy_type);
                }
            }
        }