Exemple #1
0
		public SystemErrors()
		{
			if (g_ErrorObject != null)
			{
				throw new ArgumentNullException ("Constructor", string.Format (CultureInfo.InvariantCulture, "Global pointer NOT Null"));
			}
			g_ErrorObject = this;
		}
Exemple #2
0
		static public string TranslateError (string internalName)
		{
			if (g_ErrorObject == null)
			{
				// Allocate error object
				g_ErrorObject = new SystemErrors ();
#if DEBUG
				SystemErrors.GenerateFile ();
#endif
			}

			return SystemErrors.Instance.Translate (internalName);
		}