mirror of
https://github.com/xcp-ng/xenadmin.git
synced 2025-01-20 07:19:18 +01:00
CP-11713: Storage Motion icons for stopped and suspended VMs
This commit is contained in:
parent
23319daeba
commit
6d3a937304
@ -166,6 +166,8 @@ namespace XenAdmin
|
||||
ImageList16.Images.Add("virtualappliance_16.png", Properties.Resources._000_VirtualAppliance_h32bit_16);
|
||||
|
||||
ImageList16.Images.Add("000_MigrateVM_h32bit_16.png", Properties.Resources._000_MigrateVM_h32bit_16);
|
||||
ImageList16.Images.Add("000_MigrateStoppedVM_h32bit_16.png", Properties.Resources._000_MigrateStoppedVM_h32bit_16);
|
||||
ImageList16.Images.Add("000_MigrateSuspendedVM_h32bit_16.png", Properties.Resources._000_MigrateSuspendedVM_h32bit_16);
|
||||
|
||||
ImageList16.Images.Add("_000_ManagementInterface_h32bit_16.png", Properties.Resources._000_ManagementInterface_h32bit_16);
|
||||
ImageList16.Images.Add("000_TCP_IPGroup_h32bit_16.png", Properties.Resources._000_TCP_IPGroup_h32bit_16);
|
||||
@ -404,7 +406,18 @@ namespace XenAdmin
|
||||
return disabled ? Icons.VmStoppedDisabled : Icons.VmStopped;
|
||||
|
||||
if (vm.current_operations.ContainsValue(vm_operations.migrate_send))
|
||||
return Icons.VmCrossPoolMigrate;
|
||||
{
|
||||
switch (vm.power_state)
|
||||
{
|
||||
case vm_power_state.Halted:
|
||||
return Icons.VmCrossPoolMigrateStopped;
|
||||
case vm_power_state.Suspended:
|
||||
case vm_power_state.Paused:
|
||||
return Icons.VmCrossPoolMigrateSuspended;
|
||||
default:
|
||||
return Icons.VmCrossPoolMigrate;
|
||||
}
|
||||
}
|
||||
|
||||
// If a VM lifecycle operation is in progress, show the orange "starting" icon
|
||||
foreach (vm_operations op in vm.current_operations.Values)
|
||||
|
20
XenAdmin/Properties/Resources.Designer.cs
generated
20
XenAdmin/Properties/Resources.Designer.cs
generated
@ -640,6 +640,26 @@ namespace XenAdmin.Properties {
|
||||
}
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Looks up a localized resource of type System.Drawing.Bitmap.
|
||||
/// </summary>
|
||||
internal static System.Drawing.Bitmap _000_MigrateStoppedVM_h32bit_16 {
|
||||
get {
|
||||
object obj = ResourceManager.GetObject("_000_MigrateStoppedVM_h32bit_16", resourceCulture);
|
||||
return ((System.Drawing.Bitmap)(obj));
|
||||
}
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Looks up a localized resource of type System.Drawing.Bitmap.
|
||||
/// </summary>
|
||||
internal static System.Drawing.Bitmap _000_MigrateSuspendedVM_h32bit_16 {
|
||||
get {
|
||||
object obj = ResourceManager.GetObject("_000_MigrateSuspendedVM_h32bit_16", resourceCulture);
|
||||
return ((System.Drawing.Bitmap)(obj));
|
||||
}
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Looks up a localized resource of type System.Drawing.Bitmap.
|
||||
/// </summary>
|
||||
|
@ -1099,4 +1099,10 @@
|
||||
<data name="coreos_16" type="System.Resources.ResXFileRef, System.Windows.Forms">
|
||||
<value>..\Images\coreos-16.png;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a</value>
|
||||
</data>
|
||||
<data name="_000_MigrateStoppedVM_h32bit_16" type="System.Resources.ResXFileRef, System.Windows.Forms">
|
||||
<value>..\Images\000_MigrateStoppedVM_h32bit_16.png;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a</value>
|
||||
</data>
|
||||
<data name="_000_MigrateSuspendedVM_h32bit_16" type="System.Resources.ResXFileRef, System.Windows.Forms">
|
||||
<value>..\Images\000_MigrateSuspendedVM_h32bit_16.png;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a</value>
|
||||
</data>
|
||||
</root>
|
@ -3940,6 +3940,8 @@
|
||||
<None Include="Images\000_NewVirtualAppliance_h32bit_32.png" />
|
||||
<None Include="Images\000_ManagementInterface_h32bit_16.png" />
|
||||
<Content Include="Images\000_FilterSeverity_h32bit_16.png" />
|
||||
<None Include="Images\000_MigrateStoppedVM_h32bit_16.png" />
|
||||
<None Include="Images\000_MigrateSuspendedVM_h32bit_16.png" />
|
||||
<Content Include="Images\000_MigrateVM_h32bit_16.png" />
|
||||
<Content Include="Images\000_MigrateVM_h32bit_32.png" />
|
||||
<Content Include="Images\000_Patch_h32bit_32.png" />
|
||||
|
@ -151,6 +151,8 @@ namespace XenAdmin
|
||||
VmAppliance,
|
||||
|
||||
VmCrossPoolMigrate,
|
||||
VmCrossPoolMigrateStopped,
|
||||
VmCrossPoolMigrateSuspended,
|
||||
|
||||
PifPrimary,
|
||||
PifSecondary,
|
||||
|
Loading…
Reference in New Issue
Block a user