JD2022-TU1/main/extern/Soundwich/Solution/Studio/Program.cs

46 lines
1.3 KiB
C#

using JD.Bloomberg;
using JD.Core;
using Studio.ControlsEx;
using Studio.Soundwich;
using System;
using System.IO;
using System.Reflection;
using System.Windows.Forms;
namespace Studio
{
static class Program
{
/// <summary>
/// The main entry point for the application.
/// </summary>
[STAThread]
static void Main(string[] args)
{
// use /dev in command line to be able to "Create component templates" from components.xml
var exeDir = Path.GetDirectoryName(Assembly.GetEntryAssembly().Location());
Directory.SetCurrentDirectory(exeDir);
Application.EnableVisualStyles();
Application.SetCompatibleTextRenderingDefault(false);
SystemColorsEx.Intensity = Properties.Settings.Default.SystemColorIntensity;
JdBloombergLegacy.Instance.Start();
PerforceHelper.Connect();
if (args.Length > 0 && args[0] == "/dev")
{
Application.Run(new MainView(true));
}
else if (args.Length > 0)
{
Application.Run(new Studio.Audition.AuditionForm(args[0]));
}
else
{
Application.Run(new MainView(false));
}
}
}
}