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 { /// /// The main entry point for the application. /// [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)); } } } }