CP-7579: Remove the DVSC deprecated warning messages on XenCenter for XS6.5(remove all deprecate related code)

This commit is contained in:
Cheng Zhang 2014-04-21 13:33:34 +08:00
parent 31ba19336b
commit 34b30b9b9a
6 changed files with 1 additions and 46 deletions

View File

@ -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();

View File

@ -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);
}
}
}

View File

@ -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>

View File

@ -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>

View File

@ -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>

View File

@ -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>