using System.CodeDom.Compiler;
using System.Collections.Generic;
using System.ComponentModel;
using System.Diagnostics;
using System.Drawing;
using System.Globalization;
using System.IO;
using System.Resources;
using System.Runtime.CompilerServices;

namespace TeslaConsole.Properties;

[DebuggerNonUserCode]
[CompilerGenerated]
[GeneratedCode("System.Resources.Tools.StronglyTypedResourceBuilder", "2.0.0.0")]
internal class Resources
{
	private static ResourceManager resourceMan;

	private static CultureInfo resourceCulture;

	// XP11: the images that used to live in the .resx as BinaryFormatter blobs now
	// ship as raw embedded files (logical name "TeslaConsole.Icons.<file>", original
	// bytes — see Console\assets\icons\). Building those blobs requires
	// System.Resources.Extensions' DeserializingResourceReader at runtime, which is
	// net461+ and cannot load on the XP-compatible net40. Strings stay in the .resx.
	// Instances are cached like ResourceManager.GetObject cached them: one shared
	// object per name.
	private static readonly Dictionary<string, object> imageCache = new Dictionary<string, object>();

	[EditorBrowsable(EditorBrowsableState.Advanced)]
	internal static ResourceManager ResourceManager
	{
		get
		{
			if (object.ReferenceEquals(resourceMan, null))
			{
				ResourceManager resourceManager = (resourceMan = new ResourceManager("TeslaConsole.Properties.Resources", typeof(Resources).Assembly));
			}
			return resourceMan;
		}
	}

	[EditorBrowsable(EditorBrowsableState.Advanced)]
	internal static CultureInfo Culture
	{
		get
		{
			return resourceCulture;
		}
		set
		{
			resourceCulture = value;
		}
	}

	internal static Bitmap EmbeddedBitmap(string file)
	{
		lock (imageCache)
		{
			object image;
			if (!imageCache.TryGetValue(file, out image))
			{
				// Deliberately not disposed: GDI+ decodes lazily (e.g. the animated
				// GIF's frames), so the stream must outlive the Bitmap. It is an
				// UnmanagedMemoryStream over the mapped assembly image — no handle.
				Stream stream = typeof(Resources).Assembly.GetManifestResourceStream("TeslaConsole.Icons." + file);
				image = new Bitmap(stream);
				imageCache.Add(file, image);
			}
			return (Bitmap)image;
		}
	}

	internal static Icon EmbeddedIcon(string file)
	{
		lock (imageCache)
		{
			object icon;
			if (!imageCache.TryGetValue(file, out icon))
			{
				using (Stream stream = typeof(Resources).Assembly.GetManifestResourceStream("TeslaConsole.Icons." + file))
				{
					icon = new Icon(stream);
				}
				imageCache.Add(file, icon);
			}
			return (Icon)icon;
		}
	}

	internal static Bitmap Add => EmbeddedBitmap("Add.png");

	internal static Bitmap Blank => EmbeddedBitmap("Blank.png");

	internal static Bitmap DeleteHS => EmbeddedBitmap("DeleteHS.png");

	internal static Bitmap Error => EmbeddedBitmap("Error.bmp");

	internal static string ErrorReportsDir => ResourceManager.GetString("ErrorReportsDir", resourceCulture);

	internal static Bitmap install => EmbeddedBitmap("install.png");

	internal static Bitmap openHS => EmbeddedBitmap("openHS.png");

	internal static Bitmap Play => EmbeddedBitmap("Play.png");

	internal static Bitmap PodBad16 => EmbeddedBitmap("PodBad16.png");

	internal static Bitmap PodBad32 => EmbeddedBitmap("PodBad32.png");

	internal static string PodBadImageKey => ResourceManager.GetString("PodBadImageKey", resourceCulture);

	internal static Bitmap PodGo16 => EmbeddedBitmap("PodGo16.png");

	internal static Bitmap PodGo32 => EmbeddedBitmap("PodGo32.png");

	internal static string PodGoImageKey => ResourceManager.GetString("PodGoImageKey", resourceCulture);

	internal static Bitmap PodOffline16 => EmbeddedBitmap("PodOffline16.png");

	internal static Bitmap PodOffline32 => EmbeddedBitmap("PodOffline32.png");

	internal static string PodOfflineImageKey => ResourceManager.GetString("PodOfflineImageKey", resourceCulture);

	internal static Bitmap PodOfflineQuestion32 => EmbeddedBitmap("PodOfflineQuestion32.png");

	internal static Bitmap PodOnline16 => EmbeddedBitmap("PodOnline16.png");

	internal static Bitmap PodOnline32 => EmbeddedBitmap("PodOnline32.png");

	internal static string PodOnlineImageKey => ResourceManager.GetString("PodOnlineImageKey", resourceCulture);

	internal static Bitmap PodQuestion16 => EmbeddedBitmap("PodQuestion16.png");

	internal static Bitmap PodQuestion32 => EmbeddedBitmap("PodQuestion32.png");

	internal static string PodQuestionImageKey => ResourceManager.GetString("PodQuestionImageKey", resourceCulture);

	internal static Bitmap PodRun16 => EmbeddedBitmap("PodRun16.png");

	internal static Bitmap PodRun32 => EmbeddedBitmap("PodRun32.png");

	internal static string PodRunImageKey => ResourceManager.GetString("PodRunImageKey", resourceCulture);

	internal static Bitmap Power => EmbeddedBitmap("Power.png");

	internal static Bitmap RefreshDoc => EmbeddedBitmap("RefreshDoc.png");

	internal static Bitmap saveHS => EmbeddedBitmap("saveHS.png");

	internal static Bitmap square_throbber => EmbeddedBitmap("square_throbber.gif");

	internal static Bitmap Stop => EmbeddedBitmap("Stop.png");

	internal static Icon swirl => EmbeddedIcon("swirl.ico");

	internal static Bitmap WebRefreshHH => EmbeddedBitmap("WebRefreshHH.png");

	internal Resources()
	{
	}
}
