view Windows/Forms/Util/WidgetValuesUtil.cs @ 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
children
line wrap: on
line source

// 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;
		}
	}
}