DiscordMediaLoader/Discord Media Loader/Program.cs

29 lines
755 B
C#
Raw Normal View History

2017-01-28 16:51:55 +01:00
using System;
using System.Windows.Forms;
using DML.Application.Classes;
2017-01-28 16:51:55 +01:00
namespace Discord_Media_Loader
{
2021-12-05 20:39:46 +01:00
internal static class Program
2017-01-28 16:51:55 +01:00
{
[STAThread]
2021-12-05 20:39:46 +01:00
private static void Main(string[] paramStrings)
2017-03-09 20:08:35 +01:00
{
2017-01-28 16:51:55 +01:00
Application.EnableVisualStyles();
Application.SetHighDpiMode(HighDpiMode.SystemAware);
2017-01-28 16:51:55 +01:00
Application.SetCompatibleTextRenderingDefault(false);
2017-03-09 20:56:48 +01:00
2017-04-16 17:57:27 +02:00
var splashScreen = new FrmSplash();
if (splashScreen.ShowDialog() == DialogResult.OK)
2021-12-05 20:39:46 +01:00
DoLaunch(paramStrings);
else
Application.Restart();
}
2017-04-16 17:57:27 +02:00
private static void DoLaunch(string[] paramStrings)
{
Core.Run(paramStrings);
2017-01-28 16:51:55 +01:00
}
}
}