Exemplo n.º 1
0
        public static Icons GetIconFor(StorageLinkVolume storageLinkVolume)
        {
            VDI vdi = storageLinkVolume.VDI(ConnectionsManager.XenConnectionsCopy);

            if (vdi != null)
            {
                return(GetIconFor(vdi));
            }
            return(Icons.StorageLinkVolume);
        }
Exemplo n.º 2
0
            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));
            }
Exemplo n.º 3
0
 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);
            }