Esempio n. 1
0
 [STAThread] static void Main(string[] args)
 {
     using (var form = new PlayerForm()) {
         if (args.Length > 0)
         {
             form.DoOpenFiles(args);
         }
         MessagePump.Run(form, form.MainLoop);
     }
 }
Esempio n. 2
0
 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);
     }
 }
Esempio n. 3
0
        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);
        }