using System;
using System.Reflection;
using System.Windows.Forms;
using ToolsManagement;

namespace NPTGUI;

public class Splash_Screen
{
	private const string APPLICATION_NAME = "QDART Noise Profiling Tool";

	private const string SPLASH_FILENAME = "QDART_NoiseProfilingTool.png";

	private const bool IS_GUI = true;

	private const string CUSTOM_TEXT = "Launching QDART Noise Profiling Tool Version ";

	private const bool IS_SILENT_SPLASH = false;

	private const int EXTRA_MS_COMMANDLINEMODE = -4500;

	private const int EXTRA_MS = -3000;

	public void ShowSplash(bool commandLineMode)
	{
		if (((!commandLineMode) ? ToolsManagement.SplashLibrary.LaunchSplash("QDART Noise Profiling Tool", "QDART_NoiseProfilingTool.png", bGUI: true, "Launching QDART Noise Profiling Tool Version " + Assembly.GetExecutingAssembly().GetName().Version.ToString() + "...", bSilentSplash: false, -3000) : ToolsManagement.SplashLibrary.LaunchSplash("QDART Noise Profiling Tool", "QDART_NoiseProfilingTool.png", bGUI: true, "Launching QDART Noise Profiling Tool Version " + Assembly.GetExecutingAssembly().GetName().Version.ToString() + "...", bSilentSplash: false, -4500)) != 0)
		{
			MessageBox.Show("Setup Error. Please Contact Qualcomm Tools Support");
			Environment.Exit(1);
		}
	}

	public void ShowNotice()
	{
		if (!ToolsManagement.SplashLibrary.ShowNotice("QDART_NoiseProfilingTool.png"))
		{
			MessageBox.Show("Notice Error. Please Contact Qualcomm Tools Support");
		}
	}
}
