mirror of
https://github.com/xcp-ng/xenadmin.git
synced 2025-01-20 07:19:18 +01:00
CP-7579: Remove the DVSC deprecated warning messages on XenCenter for XS6.5(remove all deprecate related code)
This commit is contained in:
parent
31ba19336b
commit
34b30b9b9a
@ -79,7 +79,7 @@ namespace XenAdmin.Wizards
|
||||
{
|
||||
InitializeComponent();
|
||||
|
||||
pageNetworkType = new NetWTypeSelect {Banner = Banner};
|
||||
pageNetworkType = new NetWTypeSelect();
|
||||
pageName = new NetWName();
|
||||
pageNetworkDetails = new NetWDetails();
|
||||
pageBondDetails = new NetWBondDetails();
|
||||
|
@ -61,8 +61,6 @@ namespace XenAdmin.Wizards.NewNetworkWizard_Pages
|
||||
Update(Connection);
|
||||
}
|
||||
|
||||
public DeprecationBanner Banner { set; private get; }
|
||||
|
||||
public NetworkTypes SelectedNetworkType
|
||||
{
|
||||
get
|
||||
@ -120,18 +118,6 @@ namespace XenAdmin.Wizards.NewNetworkWizard_Pages
|
||||
}
|
||||
}
|
||||
|
||||
public void SetDeprecationBanner(bool visible)
|
||||
{
|
||||
if(Banner != null)
|
||||
{
|
||||
Banner.AppliesToVersion = Messages.XENSERVER_6_2;
|
||||
Banner.BannerType = DeprecationBanner.Type.Deprecation;
|
||||
Banner.FeatureName = Messages.DVSCS;
|
||||
Banner.LinkUri = new Uri(InvisibleMessages.DVSC_DEPRECATION_URL);
|
||||
Banner.Visible = visible;
|
||||
}
|
||||
}
|
||||
|
||||
private void RemoveFromToolTip(ToolTipContainer container, Panel panel)
|
||||
{
|
||||
// We have to remove the controls from the panel (rather than just
|
||||
@ -155,18 +141,5 @@ namespace XenAdmin.Wizards.NewNetworkWizard_Pages
|
||||
|
||||
Controls.Remove(container);
|
||||
}
|
||||
|
||||
public override void PageLoaded(PageLoadedDirection direction)
|
||||
{
|
||||
Pool pool = Helpers.GetPoolOfOne(Connection);
|
||||
SetDeprecationBanner(false);
|
||||
base.PageLoaded(direction);
|
||||
}
|
||||
|
||||
public override void PageLeave(PageLoadedDirection direction, ref bool cancel)
|
||||
{
|
||||
SetDeprecationBanner(false);
|
||||
base.PageLeave(direction, ref cancel);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
9
XenModel/InvisibleMessages.Designer.cs
generated
9
XenModel/InvisibleMessages.Designer.cs
generated
@ -105,15 +105,6 @@ namespace XenAdmin {
|
||||
}
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Looks up a localized string similar to http://support.citrix.com/article/CTX137336.
|
||||
/// </summary>
|
||||
public static string DVSC_DEPRECATION_URL {
|
||||
get {
|
||||
return ResourceManager.GetString("DVSC_DEPRECATION_URL", resourceCulture);
|
||||
}
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Looks up a localized string similar to http://www.citrix.com/xenserver.
|
||||
/// </summary>
|
||||
|
@ -132,9 +132,6 @@
|
||||
<data name="COMMUNITY_URL" xml:space="preserve">
|
||||
<value>http://xenserver.org/</value>
|
||||
</data>
|
||||
<data name="DVSC_DEPRECATION_URL" xml:space="preserve">
|
||||
<value>http://support.citrix.com/article/CTX137336</value>
|
||||
</data>
|
||||
<data name="HOMEPAGE" xml:space="preserve">
|
||||
<value>http://www.citrix.com/xenserver</value>
|
||||
</data>
|
||||
|
@ -132,9 +132,6 @@
|
||||
<data name="COMMUNITY_URL" xml:space="preserve">
|
||||
<value>http://xenserver.org/</value>
|
||||
</data>
|
||||
<data name="DVSC_DEPRECATION_URL" xml:space="preserve">
|
||||
<value>http://support.citrix.com/article/CTX137336</value>
|
||||
</data>
|
||||
<data name="HOMEPAGE" xml:space="preserve">
|
||||
<value>http://www.citrix.com/xenserver</value>
|
||||
</data>
|
||||
|
@ -132,9 +132,6 @@
|
||||
<data name="COMMUNITY_URL" xml:space="preserve">
|
||||
<value>http://xenserver.org/</value>
|
||||
</data>
|
||||
<data name="DVSC_DEPRECATION_URL" xml:space="preserve">
|
||||
<value>http://support.citrix.com/article/CTX137336</value>
|
||||
</data>
|
||||
<data name="HOMEPAGE" xml:space="preserve">
|
||||
<value>http://www.citrix.com/xenserver</value>
|
||||
</data>
|
||||
|
Loading…
Reference in New Issue
Block a user