From 7dcd5882dd8a405b193d58ffe01c7300e0ad5088 Mon Sep 17 00:00:00 2001 From: John Date: Wed, 2 Jan 2013 16:14:59 +0000 Subject: [PATCH] Now gets the copyright year from the build date --- PROMS/VEPROMS User Interface/AboutVEPROMS.cs | 16 +--------------- 1 file changed, 1 insertion(+), 15 deletions(-) diff --git a/PROMS/VEPROMS User Interface/AboutVEPROMS.cs b/PROMS/VEPROMS User Interface/AboutVEPROMS.cs index a96278f3..df812c2c 100644 --- a/PROMS/VEPROMS User Interface/AboutVEPROMS.cs +++ b/PROMS/VEPROMS User Interface/AboutVEPROMS.cs @@ -34,7 +34,7 @@ namespace VEPROMS this.labelProductName.Text = AssemblyProduct; this.labelVersion.Text = String.Format("Version {0}", (demoTxt.Equals(""))? AssemblyVersion : demoTxt); this.labelVersionDateTime.Text = String.Format("Build Date: {0}", buildDateTime.ToString()); - this.labelCopyright.Text = AssemblyCopyright; + this.labelCopyright.Text = String.Format("Copyright © {0}. All Rights Reserved.", buildDateTime.Year.ToString()); this.labelCompanyName.Text = AssemblyCompany; // this.textBoxDescription.Text = AssemblyDescription; this.labelCompanyName.Links[0].LinkData = "Volian Enterprises Inc."; @@ -101,20 +101,6 @@ namespace VEPROMS } } - public string AssemblyCopyright - { - get - { - // Get all Copyright attributes on this assembly - object[] attributes = Assembly.GetExecutingAssembly().GetCustomAttributes(typeof(AssemblyCopyrightAttribute), false); - // If there aren't any Copyright attributes, return an empty string - if (attributes.Length == 0) - return ""; - // If there is a Copyright attribute, return its value - return ((AssemblyCopyrightAttribute)attributes[0]).Copyright; - } - } - public string AssemblyCompany { get