From 5dd43d2e6e2901271020388e46957b6b8035d404 Mon Sep 17 00:00:00 2001 From: Patrick Simpson Date: Wed, 15 Feb 2017 15:16:23 +0100 Subject: [PATCH] Added build year to about dialog --- .../AcaciaZPushPlugin/Features/DebugSupport/AboutDialog.cs | 7 ++++--- src/AcaciaZPushPlugin/AcaciaZPushPlugin/ThisAddIn.cs | 4 ---- 2 files changed, 4 insertions(+), 7 deletions(-) diff --git a/src/AcaciaZPushPlugin/AcaciaZPushPlugin/Features/DebugSupport/AboutDialog.cs b/src/AcaciaZPushPlugin/AcaciaZPushPlugin/Features/DebugSupport/AboutDialog.cs index b48feb2..b990de8 100644 --- a/src/AcaciaZPushPlugin/AcaciaZPushPlugin/Features/DebugSupport/AboutDialog.cs +++ b/src/AcaciaZPushPlugin/AcaciaZPushPlugin/Features/DebugSupport/AboutDialog.cs @@ -46,14 +46,15 @@ namespace Acacia.Features.DebugSupport labelDateValue.Text = LibUtils.BuildTime.ToString(); // Hardcoded to prevent translations - textLicense.Text = -@"Copyright 2016 Kopano b.v. + textLicense.Text = string.Format( +@"Copyright 2016-{0} Kopano b.v. This program is free software: you can redistribute it and/or modify it under the terms of the GNU Affero General Public License, version 3, as published by the Free Software Foundation. This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Affero General Public License for more details. -You should have received a copy of the GNU Affero General Public License along with this program. If not, see "; +You should have received a copy of the GNU Affero General Public License along with this program. If not, see ", +LibUtils.BuildTime.Year); } private void linkKopano_LinkClicked(object sender, LinkLabelLinkClickedEventArgs e) diff --git a/src/AcaciaZPushPlugin/AcaciaZPushPlugin/ThisAddIn.cs b/src/AcaciaZPushPlugin/AcaciaZPushPlugin/ThisAddIn.cs index 7578bd4..2898eb9 100644 --- a/src/AcaciaZPushPlugin/AcaciaZPushPlugin/ThisAddIn.cs +++ b/src/AcaciaZPushPlugin/AcaciaZPushPlugin/ThisAddIn.cs @@ -27,10 +27,6 @@ using Acacia.UI; using Acacia.ZPush; using System.Globalization; using Acacia.UI.Outlook; -using System.Diagnostics; -using System.Runtime.InteropServices; -using System.Reflection; -using Acacia.Native; using Acacia.Stubs; using Acacia.Stubs.OutlookWrappers;