[STAThread] static void Main(string[] args) { using (var form = new PlayerForm()) { if (args.Length > 0) { form.DoOpenFiles(args); } MessagePump.Run(form, form.MainLoop); } }
static void Main(string[] args) { using (var form = new PlayerForm()) { if (args.Length > 0) { form.DoOpenFiles(args); } else { form.OpenFile(); } Thread m_Thread = new Thread(() => form.Loop()); m_Thread.Start(); Application.Run(form); } }
private static void Main(string[] args) { using var form = new PlayerForm(); if (args.Length > 0) { form.DoOpenFiles(args); } else { if (Configuration.Main.OpenFileSelect) { form.OpenFile(); } else if (Configuration.Main.OpenDownload) { form.PlayerDownloadWindow(); } } Thread m_Thread = new Thread(() => form.Loop()); m_Thread.Start(); Application.Run(form); }