public static Icons GetIconFor(StorageLinkVolume storageLinkVolume) { VDI vdi = storageLinkVolume.VDI(ConnectionsManager.XenConnectionsCopy); if (vdi != null) { return(GetIconFor(vdi)); } return(Icons.StorageLinkVolume); }
private VirtualTreeNode AddStorageLinkVolumeNode(VirtualTreeNode parent, int index, StorageLinkVolume storageLinkVolume) { string name = storageLinkVolume.FriendlyName; VDI vdi = storageLinkVolume.VDI(ConnectionsManager.XenConnectionsCopy); if (vdi != null) { name = string.Format("{0} ({1})", vdi.Name, name); } return(AddNode(parent, index, name, Images.GetIconFor(storageLinkVolume), false, storageLinkVolume)); }
public static Icons GetIconFor(StorageLinkVolume storageLinkVolume) { VDI vdi = storageLinkVolume.VDI(ConnectionsManager.XenConnectionsCopy); if (vdi != null) { return GetIconFor(vdi); } return Icons.StorageLinkVolume; }
private VirtualTreeNode AddStorageLinkVolumeNode(VirtualTreeNode parent, int index, StorageLinkVolume storageLinkVolume) { string name = storageLinkVolume.FriendlyName; VDI vdi = storageLinkVolume.VDI(ConnectionsManager.XenConnectionsCopy); if (vdi != null) { name = string.Format("{0} ({1})", vdi.Name, name); } return AddNode(parent, index, name, Images.GetIconFor(storageLinkVolume), false, storageLinkVolume); }