2019-02-15 17:49:46 +01:00
|
|
|
|
#region LICENSE
|
|
|
|
|
/**********************************************************************************************
|
|
|
|
|
* Copyright (C) 2019-2019 - All Rights Reserved
|
|
|
|
|
*
|
|
|
|
|
* This file is part of "Discord Media Loader".
|
|
|
|
|
* The official repository is hosted at https://github.com/Serraniel/Darkorbit-Helper-Program
|
|
|
|
|
*
|
|
|
|
|
* "Discord Media Loader" is licensed under European Union Public Licence V. 1.2.
|
|
|
|
|
* Full license is included in the project repository.
|
|
|
|
|
*
|
|
|
|
|
* Users who edited Program.cs under the condition of the used license:
|
|
|
|
|
* - Serraniel (https://github.com/Serraniel)
|
|
|
|
|
**********************************************************************************************/
|
|
|
|
|
#endregion
|
|
|
|
|
|
|
|
|
|
using System;
|
2017-01-28 16:51:55 +01:00
|
|
|
|
using System.Windows.Forms;
|
2017-10-04 13:14:44 +02:00
|
|
|
|
using DML.Application.Classes;
|
2017-04-16 22:46:29 +02:00
|
|
|
|
using Nito.AsyncEx;
|
2017-01-28 16:51:55 +01:00
|
|
|
|
|
|
|
|
|
namespace Discord_Media_Loader
|
|
|
|
|
{
|
|
|
|
|
static class Program
|
|
|
|
|
{
|
|
|
|
|
[STAThread]
|
2017-04-16 22:46:29 +02:00
|
|
|
|
static void Main(string[] paramStrings)
|
2017-03-09 20:08:35 +01:00
|
|
|
|
{
|
2017-01-28 16:51:55 +01:00
|
|
|
|
Application.EnableVisualStyles();
|
|
|
|
|
Application.SetCompatibleTextRenderingDefault(false);
|
2017-03-09 20:56:48 +01:00
|
|
|
|
|
2017-04-16 17:57:27 +02:00
|
|
|
|
var splashScreen = new FrmSplash();
|
2017-12-16 16:04:01 +01:00
|
|
|
|
if (splashScreen.ShowDialog() == DialogResult.OK)
|
|
|
|
|
{
|
|
|
|
|
DoLaunch(paramStrings);
|
|
|
|
|
}
|
|
|
|
|
else
|
|
|
|
|
{
|
|
|
|
|
Application.Restart();
|
|
|
|
|
}
|
|
|
|
|
}
|
2017-04-16 17:57:27 +02:00
|
|
|
|
|
2017-12-16 16:04:01 +01:00
|
|
|
|
private static void DoLaunch(string[] paramStrings)
|
|
|
|
|
{
|
2017-04-16 22:46:29 +02:00
|
|
|
|
AsyncContext.Run(() => Core.Run(paramStrings));
|
2017-01-28 16:51:55 +01:00
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|