tinke/Be.Windows.Forms.HexBox/Util.cs
Benito Palacios 3c697b464c * Fixed problem saving the NFTR font files
* Add support to change the map char info (PMAC section) in NFTR font files
* Fixed problem with some fonts
* Improved NINOKUNI plugin to pack .N2D files
* Added support for SUBARASHIKI game (The world end with you) -> Unpack [pack] files
* Added option to search files by offset -> Offset: 00000000
* Improved hexadecimal editor
2011-10-08 14:04:56 +00:00

39 lines
1.1 KiB
C#

using System;
using System.Collections.Generic;
using System.Text;
namespace Be.Windows.Forms
{
static class Util
{
/// <summary>
/// Contains true, if we are in design mode of Visual Studio
/// </summary>
private static bool _designMode;
/// <summary>
/// Initializes an instance of Util class
/// </summary>
static Util()
{
_designMode = (System.Diagnostics.Process.GetCurrentProcess().ProcessName.ToLower() == "devenv");
}
/// <summary>
/// Gets true, if we are in design mode of Visual Studio
/// </summary>
/// <remarks>
/// In Visual Studio 2008 SP1 the designer is crashing sometimes on windows forms.
/// The DesignMode property of Control class is buggy and cannot be used, so use our own implementation instead.
/// </remarks>
public static bool DesignMode
{
get
{
return _designMode;
}
}
}
}