예제 #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);
     }
 }
예제 #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);
     }
 }
예제 #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);
        }