annotate 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
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
16
7ddfbe85c8d9 * Add style helper with initial snippet from DotNetPerls.com
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
1 // This file (WidgetValueUtil.cs) is a part of the IBBoard.Windows.Forms library and is copyright 2010 IBBoard.
7ddfbe85c8d9 * Add style helper with initial snippet from DotNetPerls.com
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
2 //
7ddfbe85c8d9 * Add style helper with initial snippet from DotNetPerls.com
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
3 // 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.
7ddfbe85c8d9 * Add style helper with initial snippet from DotNetPerls.com
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
4
7ddfbe85c8d9 * Add style helper with initial snippet from DotNetPerls.com
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
5 using System.Drawing;
7ddfbe85c8d9 * Add style helper with initial snippet from DotNetPerls.com
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
6 using System.Windows.Forms;
7ddfbe85c8d9 * Add style helper with initial snippet from DotNetPerls.com
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
7
7ddfbe85c8d9 * Add style helper with initial snippet from DotNetPerls.com
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
8 namespace IBBoard.Windows.Forms.Util
7ddfbe85c8d9 * Add style helper with initial snippet from DotNetPerls.com
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
9 {
7ddfbe85c8d9 * Add style helper with initial snippet from DotNetPerls.com
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
10 public class WidgetValuesUtil
7ddfbe85c8d9 * Add style helper with initial snippet from DotNetPerls.com
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
11 {
7ddfbe85c8d9 * Add style helper with initial snippet from DotNetPerls.com
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
12 static DataGridViewHeaderBorderStyle GetPlatformSpecificDataGridViewHeaderBorder()
7ddfbe85c8d9 * Add style helper with initial snippet from DotNetPerls.com
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
13 {
7ddfbe85c8d9 * Add style helper with initial snippet from DotNetPerls.com
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
14 return (SystemFonts.MessageBoxFont.Name == "Segoe UI") ? DataGridViewHeaderBorderStyle.None : DataGridViewHeaderBorderStyle.Raised;
7ddfbe85c8d9 * Add style helper with initial snippet from DotNetPerls.com
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
15 }
7ddfbe85c8d9 * Add style helper with initial snippet from DotNetPerls.com
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
16 }
7ddfbe85c8d9 * Add style helper with initial snippet from DotNetPerls.com
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
17 }