JD2022-TU1/main/tools/legacy/UA_AtlasEditor/Program.cs

41 lines
1.1 KiB
C#

using JD.Bloomberg;
using JD.Core.ProjectManaging;
using System;
using System.Globalization;
using System.IO;
using System.Threading;
using System.Windows.Forms;
namespace UA_AtlasEditor
{
static class Program
{
/// <summary>
/// The main entry point for the application.
/// </summary>
[STAThread]
static void Main(string[] args)
{
ProjectManager.Instance.Initialize();
JdBloombergLegacy.Instance.Start();
string openFile = null;
foreach (string arg in args)
{
if (File.Exists(arg))
{
if (Atlas.IsAtlasFile(arg))
openFile = arg;
else
openFile = "";
}
}
Thread.CurrentThread.CurrentCulture = CultureInfo.InvariantCulture;
Application.EnableVisualStyles();
Application.SetCompatibleTextRenderingDefault(false);
Application.Run(new MainForm(openFile));
}
}
}