예제 #1
0
        static void Main(string[] args)
        {
            VideoContainer2.VerifyFilterRegistration();

            System.Threading.Thread.CurrentThread.CurrentUICulture =
                System.Globalization.CultureInfo.InvariantCulture;
            Application.EnableVisualStyles();
            Application.SetCompatibleTextRenderingDefault(false);
            if (args.Length == 0 || args.Contains("-v"))
            {
                Application.Run(new MainForm());
            }
            else
            {
                CompactProcessingForm emptyForm = new CompactProcessingForm();
                emptyForm.ShowInTaskbar = false;
                System.Threading.Thread thread =
                    new Thread(new ThreadStart(new Action(() =>
                {
                    new SilentProcessingController(emptyForm).Run(args);
                    if (emptyForm.Created)
                    {
                        emptyForm.Invoke(new Action(emptyForm.Close));
                    }
                })));
                emptyForm.Shown +=
                    (s, e) => { thread.Start(); };

                Application.Run(emptyForm);
            }
        }
        public SilentProcessingController(CompactProcessingForm view)
        {
            _view         = new SilentTestView(view);
            view.Closing += (view_Closing);

            ContextController.InitGeneralContext();
        }
예제 #3
0
 public SilentTestView(CompactProcessingForm form)
 {
     _form = form;
 }