mirror of
https://github.com/xcp-ng/xenadmin.git
synced 2024-12-22 16:36:03 +01:00
034a686947
If windows_update is in the hidden features registry key, then we hide the virtualization state line about Windows update. Signed-off-by: Callum McIntyre <callumiandavid.mcintyre@citrix.com>
96 lines
3.5 KiB
C#
96 lines
3.5 KiB
C#
using System;
|
|
using System.Collections.Generic;
|
|
using System.Linq;
|
|
using System.Text;
|
|
using System.Threading.Tasks;
|
|
|
|
namespace XenAdmin.Core
|
|
{
|
|
public class HiddenFeatures
|
|
{
|
|
internal static bool CPSOptimizationHidden
|
|
{
|
|
get
|
|
{ return Registry.HiddenFeatures != null && Registry.HiddenFeatures.Contains(CPS_OPTIMIZATION_HIDDEN); }
|
|
}
|
|
|
|
internal static bool RDPPollingHidden
|
|
{
|
|
get
|
|
{ return Registry.HiddenFeatures != null && Registry.HiddenFeatures.Contains(RDP_POLLING_HIDDEN); }
|
|
}
|
|
|
|
internal static bool LearnMoreButtonHidden
|
|
{
|
|
get
|
|
{ return Registry.HiddenFeatures != null && Registry.HiddenFeatures.Contains(LEARN_MORE_HIDDEN); }
|
|
}
|
|
|
|
internal static bool LinkLabelHidden
|
|
{
|
|
get
|
|
{ return Registry.HiddenFeatures != null && Registry.HiddenFeatures.Contains(LINK_LABEL_HIDDEN); }
|
|
}
|
|
|
|
internal static bool ToolStripMenuItemHidden
|
|
{
|
|
get
|
|
{ return Registry.HiddenFeatures != null && Registry.HiddenFeatures.Contains(TOOL_STRIP_MENU_ITEM_HIDDEN); }
|
|
}
|
|
|
|
internal static bool CrossServerPrivateNetworkHidden
|
|
{
|
|
get
|
|
{ return Registry.HiddenFeatures != null && Registry.HiddenFeatures.Contains(CROSS_SERVER_PRIVATE_NETWORK_HIDDEN); }
|
|
}
|
|
|
|
internal static bool CopyrightHidden
|
|
{
|
|
get
|
|
{ return Registry.HiddenFeatures != null && Registry.HiddenFeatures.Contains(COPYRIGHT_HIDDEN); }
|
|
}
|
|
|
|
internal static bool HealthCheckHidden
|
|
{
|
|
get
|
|
{ return Registry.HiddenFeatures != null && Registry.HiddenFeatures.Contains(HEALTH_CHECK_HIDDEN); }
|
|
}
|
|
|
|
internal static bool UploadOptionHidden
|
|
{
|
|
get
|
|
{ return Registry.HiddenFeatures != null && Registry.HiddenFeatures.Contains(UPLOAD_OPTION_HIDDEN); }
|
|
}
|
|
|
|
internal static bool LicenseNagVisible
|
|
{
|
|
get
|
|
{ return Registry.AdditionalFeatures != null && Registry.AdditionalFeatures.Contains(LICENSE_NAG); }
|
|
}
|
|
|
|
internal static bool LicenseOperationsHidden
|
|
{
|
|
get
|
|
{ return Registry.HiddenFeatures != null && Registry.HiddenFeatures.Contains(LICENSE_OPERATIONS_HIDDEN); }
|
|
}
|
|
|
|
internal static bool WindowsUpdateHidden
|
|
{
|
|
get { return Registry.HiddenFeatures != null && Registry.HiddenFeatures.Contains(WINDOWS_UPDATE_HIDDEN); }
|
|
}
|
|
|
|
private const string CPS_OPTIMIZATION_HIDDEN = "cps_optimization";
|
|
private const string RDP_POLLING_HIDDEN = "rdp_polling";
|
|
private const string LEARN_MORE_HIDDEN = "learn_more";
|
|
private const string LINK_LABEL_HIDDEN = "link_label";
|
|
private const string TOOL_STRIP_MENU_ITEM_HIDDEN = "tool_strip_menu_item";
|
|
private const string CROSS_SERVER_PRIVATE_NETWORK_HIDDEN = "cross_server_private_network";
|
|
private const string COPYRIGHT_HIDDEN = "copyright";
|
|
private const string HEALTH_CHECK_HIDDEN = "health_check";
|
|
private const string UPLOAD_OPTION_HIDDEN = "upload_option";
|
|
private const string LICENSE_NAG = "license_nag";
|
|
private const string LICENSE_OPERATIONS_HIDDEN = "license_operations";
|
|
private const string WINDOWS_UPDATE_HIDDEN = "windows_update";
|
|
}
|
|
}
|