CA-153178: Add icons for Docker containers

This commit is contained in:
Mihaela Stoica 2014-12-05 14:17:57 +00:00
parent 4b39b4f7ed
commit 0e03338a64
8 changed files with 64 additions and 9 deletions

View File

@ -172,6 +172,11 @@ namespace XenAdmin
ImageList16.Images.Add("infra_view_16_textured.png", Properties.Resources.infra_view_16_textured);
ImageList16.Images.Add("objects_16_textured.png", Properties.Resources.objects_16_textured);
ImageList16.Images.Add("RunningDC_16.png", Properties.Resources.RunningDC_16);
ImageList16.Images.Add("StoppedDC_16.png", Properties.Resources.StoppedDC_16);
ImageList16.Images.Add("PausedDC_16.png", Properties.Resources.PausedDC_16);
System.Diagnostics.Trace.Assert(ImageList16.Images.Count == Enum.GetValues(typeof(Icons)).Length,
"Programmer error - you must add an entry to the image list when you add a new icon to the enum");
@ -572,11 +577,11 @@ namespace XenAdmin
switch (dockerContainer.power_state)
{
case vm_power_state.Paused:
return Icons.VmSuspended;
return Icons.DCPaused;
case vm_power_state.Running:
return Icons.VmRunning;
return Icons.DCRunning;
default:
return Icons.VmStopped;
return Icons.DCStopped;
}
}
}

Binary file not shown.

After

Width:  |  Height:  |  Size: 614 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 604 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 609 B

View File

@ -2620,6 +2620,16 @@ namespace XenAdmin.Properties {
}
}
/// <summary>
/// Looks up a localized resource of type System.Drawing.Bitmap.
/// </summary>
internal static System.Drawing.Bitmap PausedDC_16 {
get {
object obj = ResourceManager.GetObject("PausedDC_16", resourceCulture);
return ((System.Drawing.Bitmap)(obj));
}
}
/// <summary>
/// Looks up a localized resource of type System.Drawing.Bitmap.
/// </summary>
@ -2710,6 +2720,16 @@ namespace XenAdmin.Properties {
}
}
/// <summary>
/// Looks up a localized resource of type System.Drawing.Bitmap.
/// </summary>
internal static System.Drawing.Bitmap RunningDC_16 {
get {
object obj = ResourceManager.GetObject("RunningDC_16", resourceCulture);
return ((System.Drawing.Bitmap)(obj));
}
}
/// <summary>
/// Looks up a localized resource of type System.Drawing.Bitmap.
/// </summary>
@ -2940,6 +2960,16 @@ namespace XenAdmin.Properties {
}
}
/// <summary>
/// Looks up a localized resource of type System.Drawing.Bitmap.
/// </summary>
internal static System.Drawing.Bitmap StoppedDC_16 {
get {
object obj = ResourceManager.GetObject("StoppedDC_16", resourceCulture);
return ((System.Drawing.Bitmap)(obj));
}
}
/// <summary>
/// Looks up a localized resource of type System.Drawing.Bitmap.
/// </summary>

View File

@ -1084,4 +1084,13 @@
<data name="coreos_globe_icon" type="System.Resources.ResXFileRef, System.Windows.Forms">
<value>..\Images\coreos-globe-icon.png;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a</value>
</data>
<data name="RunningDC_16" type="System.Resources.ResXFileRef, System.Windows.Forms">
<value>..\Images\RunningDC_16.png;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a</value>
</data>
<data name="PausedDC_16" type="System.Resources.ResXFileRef, System.Windows.Forms">
<value>..\Images\PausedDC_16.png;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a</value>
</data>
<data name="StoppedDC_16" type="System.Resources.ResXFileRef, System.Windows.Forms">
<value>..\Images\StoppedDC_16.png;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a</value>
</data>
</root>

View File

@ -247,6 +247,11 @@
<Compile Include="Dialogs\UpsellDialog.designer.cs">
<DependentUpon>UpsellDialog.cs</DependentUpon>
</Compile>
<Compile Include="Properties\Resources.Designer.cs">
<AutoGen>True</AutoGen>
<DesignTime>True</DesignTime>
<DependentUpon>Resources.resx</DependentUpon>
</Compile>
<Compile Include="SettingsPanels\Wlb\WlbAdvancedSettingsPage.cs">
<SubType>UserControl</SubType>
</Compile>
@ -278,11 +283,6 @@
<DependentUpon>WlbThresholdsPage.cs</DependentUpon>
</Compile>
<Compile Include="Plugins\Features\ParentMenuItemFeature.cs" />
<Compile Include="Properties\Resources.Designer.cs">
<DesignTime>True</DesignTime>
<AutoGen>True</AutoGen>
<DependentUpon>Resources.resx</DependentUpon>
</Compile>
<Compile Include="SettingsUpdate.cs" />
<Compile Include="TabPages\BaseTabPage.cs">
<SubType>UserControl</SubType>
@ -4003,10 +4003,12 @@
<None Include="Images\pool_up_16.png" />
<None Include="Images\pool_up_32.png" />
<None Include="Images\objects_16_textured.png" />
<None Include="Images\PausedDC_16.png" />
<Content Include="Images\Refresh16.png" />
<None Include="Images\saved_searches_16.png" />
<None Include="Images\server_up_16.png" />
<None Include="Images\saved_searches_24.png" />
<None Include="Images\RunningDC_16.png" />
<Content Include="Images\sl_luns_16.png" />
<Content Include="Images\debian_16x.png" />
<None Include="Images\desktop.jpg" />
@ -4071,6 +4073,7 @@
<None Include="Images\SpinningFrame5.png" />
<None Include="Images\SpinningFrame6.png" />
<None Include="Images\SpinningFrame7.png" />
<None Include="Images\StoppedDC_16.png" />
<Content Include="Images\subscribe.png" />
<None Include="Images\success_action_16.png" />
<Content Include="Images\suse_16x.png" />

View File

@ -156,6 +156,14 @@ namespace XenAdmin
PifSecondary,
Home,
Objects
Objects,
#region DockerContainer Icons
DCRunning,
DCStopped,
DCPaused
#endregion
}
}