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

namespace QFDT;

public class Splash_Screen
{
	private const string APPLICATION_NAME = "Qualcomm Factory Debug Tool";

	private const string SPLASH_FILENAME = "QFDT.png";

	private const bool IS_GUI = true;

	private const string CUSTOM_TEXT = "";

	private const bool IS_SILENT_SPLASH = false;

	private const int EXTRA_MS = 0;

	public void ShowSplash()
	{
		try
		{
			if (ToolsManagement.SplashLibrary.LaunchSplash("Qualcomm Factory Debug Tool", "QFDT.png", bGUI: true, "") != 0)
			{
				MessageBox.Show("Setup Error. Please Contact Qualcomm Tools Support");
				Environment.Exit(1);
			}
		}
		catch (Exception)
		{
			MessageBox.Show("Setup Error. Please Contact Qualcomm Tools Support");
			Environment.Exit(1);
		}
	}

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