Browse Source

It's 2010.

Don't hard-code copyright years in StartPageControl, read them from GlobalAssemblyInfo instead.

git-svn-id: svn://svn.sharpdevelop.net/sharpdevelop/trunk@5381 1ccf3a8d-04fe-1044-b7c0-cef0b8235c61
pull/1/head
Daniel Grunwald 16 years ago
parent
commit
80b9d458bc
  1. 2
      src/AddIns/Misc/StartPage/Project/Src/StartPageControl.xaml
  2. 4
      src/AddIns/Misc/StartPage/Project/Src/StartPageControl.xaml.cs
  3. 2
      src/Main/GlobalAssemblyInfo.template

2
src/AddIns/Misc/StartPage/Project/Src/StartPageControl.xaml

@ -74,7 +74,7 @@ @@ -74,7 +74,7 @@
Grid.Row="2"
Padding="4,0,4,0"
TextWrapping="WrapWithOverflow">
Copyright ©2000-2009
Copyright ©<Run Name="copyrightYearRange"/>
<Hyperlink
NavigateUri="mailto:webmaster@icsharpcode.net">IC#SharpCode</Hyperlink>
<Run Text=" "/>

4
src/AddIns/Misc/StartPage/Project/Src/StartPageControl.xaml.cs

@ -7,6 +7,7 @@ @@ -7,6 +7,7 @@
using System;
using System.Collections.Generic;
using System.Reflection;
using System.Windows.Controls;
using ICSharpCode.Core;
@ -25,6 +26,9 @@ namespace ICSharpCode.StartPage @@ -25,6 +26,9 @@ namespace ICSharpCode.StartPage
// WPF does not use DataTemplates if the item already is a UIElement; so we 'box' it.
List<BoxEntry> entries = items.ConvertAll(control => new BoxEntry { Control = control } );
startPageItems.ItemsSource = entries;
var aca = (AssemblyCopyrightAttribute)typeof(StartPageControl).Assembly.GetCustomAttributes(typeof(AssemblyCopyrightAttribute), false)[0];
copyrightYearRange.Text = aca.Copyright.Substring(0, 9);
}
sealed class BoxEntry

2
src/Main/GlobalAssemblyInfo.template

@ -20,7 +20,7 @@ using System.Reflection; @@ -20,7 +20,7 @@ using System.Reflection;
[assembly: System.Runtime.InteropServices.ComVisible(false)]
[assembly: AssemblyCompany("ic#code")]
[assembly: AssemblyProduct("SharpDevelop")]
[assembly: AssemblyCopyright("2000-2009 AlphaSierraPapa")]
[assembly: AssemblyCopyright("2000-2010 AlphaSierraPapa")]
[assembly: AssemblyVersion(RevisionClass.FullVersion)]
[assembly: NeutralResourcesLanguage("en-US")]

Loading…
Cancel
Save