changeset 16:7ddfbe85c8d9

* Add style helper with initial snippet from DotNetPerls.com * Add license info to the top of ControlValueChangedChecker no-open-ticket
author IBBoard <dev@ibboard.co.uk>
date Thu, 06 May 2010 20:06:42 +0000
parents 7c459ebc4210
children 6a697a7c78d3
files IBBoard.Windows.Forms.csproj Windows/Forms/Util/ControlValueChangedChecker.cs Windows/Forms/Util/WidgetValuesUtil.cs
diffstat 3 files changed, 23 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/IBBoard.Windows.Forms.csproj	Sun Apr 18 15:04:21 2010 +0000
+++ b/IBBoard.Windows.Forms.csproj	Thu May 06 20:06:42 2010 +0000
@@ -1,4 +1,4 @@
-<?xml version="1.0" encoding="utf-8"?>
+<?xml version="1.0" encoding="utf-8"?>
 <Project DefaultTargets="Build" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
   <PropertyGroup>
     <ProjectType>Local</ProjectType>
@@ -109,6 +109,7 @@
     </Compile>
     <Compile Include="Windows\Forms\I18N\ControlTranslator.cs" />
     <Compile Include="Windows\Forms\Util\ControlValueChangedChecker.cs" />
+    <Compile Include="Windows\Forms\Util\WidgetValuesUtil.cs" />
     <EmbeddedResource Include="Windows\Forms\ColorableStatusBar.resx">
       <DependentUpon>ColorableStatusBar.cs</DependentUpon>
     </EmbeddedResource>
--- a/Windows/Forms/Util/ControlValueChangedChecker.cs	Sun Apr 18 15:04:21 2010 +0000
+++ b/Windows/Forms/Util/ControlValueChangedChecker.cs	Thu May 06 20:06:42 2010 +0000
@@ -1,3 +1,7 @@
+// This file (ControlValueChangedChecker.cs) is a part of the IBBoard.Windows.Forms library and is copyright 2009 IBBoard.
+//
+// The file and the library/program it is in are licensed under the GNU LGPL license, either version 3 of the License or (at your option) any later version. Please see COPYING.LGPL for more information and the full license.
+
 using System;
 using System.Collections.Generic;
 using System.Text;
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/Windows/Forms/Util/WidgetValuesUtil.cs	Thu May 06 20:06:42 2010 +0000
@@ -0,0 +1,17 @@
+// This file (WidgetValueUtil.cs) is a part of the IBBoard.Windows.Forms library and is copyright 2010 IBBoard.
+//
+// The file and the library/program it is in are licensed under the GNU LGPL license, either version 3 of the License or (at your option) any later version. Please see COPYING.LGPL for more information and the full license.
+
+using System.Drawing;
+using System.Windows.Forms;
+
+namespace IBBoard.Windows.Forms.Util
+{
+	public class WidgetValuesUtil
+	{
+		static DataGridViewHeaderBorderStyle GetPlatformSpecificDataGridViewHeaderBorder()
+		{
+			return (SystemFonts.MessageBoxFont.Name == "Segoe UI") ? DataGridViewHeaderBorderStyle.None : DataGridViewHeaderBorderStyle.Raised;
+		}
+	}
+}