private CopyGuidToClipboard ( System.Guid guid, CopyGuidType copyType ) : void | ||
guid | System.Guid | |
copyType | CopyGuidType | |
Résultat | void |
private void CopyGuid(COMRegistryViewer.CopyGuidType copy_type) { if (listViewTypes.SelectedItems.Count > 0) { ListViewItemWithIid item = (ListViewItemWithIid)listViewTypes.SelectedItems[0]; COMRegistryViewer.CopyGuidToClipboard(item.Iid, copy_type); } }
private void copyCLSIDToolStripMenuItem_Click(object sender, EventArgs e) { COMProcessClassRegistration c = GetRegisteredClass(); if (c != null) { COMRegistryViewer.CopyGuidToClipboard(c.Clsid, COMRegistryViewer.CopyGuidType.CopyAsString); } }
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); } }
private void copyIPIDIIDToolStripMenuItem_Click(object sender, EventArgs e) { COMIPIDEntry ipid = GetSelectedIpid(); if (ipid != null) { COMRegistryViewer.CopyGuidToClipboard(ipid.Iid, COMRegistryViewer.CopyGuidType.CopyAsString); } }
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); } } }