Пример #1
0
        static void Main(string[] args)
        {
            Progress      progressWindow;
            PrepareThread prepareThread;

            Application.EnableVisualStyles();
            Application.SetCompatibleTextRenderingDefault(false);

            progressWindow = new Progress();
            prepareThread  = new PrepareThread(args, progressWindow);

            Thread backgroundThread = new Thread(new ThreadStart(prepareThread.Run));

            progressWindow.Show();
            backgroundThread.Start();

            Application.Run(progressWindow);
        }
Пример #2
0
        static void Main(string[] args)
        {
            Progress      progressWindow;
            PrepareThread prepareThread;

            Application.EnableVisualStyles();
            Application.SetCompatibleTextRenderingDefault(false);

            TextWriterTraceListener tlog = new TimeDateTraceListener(Application.CommonAppDataPath + "\\Install.log", "Install");

            Trace.Listeners.Add(tlog);
            Trace.AutoFlush = true;

            progressWindow = new Progress();
            prepareThread  = new PrepareThread(args, progressWindow);

            Thread backgroundThread = new Thread(new ThreadStart(prepareThread.Run));

            progressWindow.Show();
            backgroundThread.Start();

            Application.Run(progressWindow);
        }
Пример #3
0
        static void Main(string[] args)
        {
            Progress progressWindow;
            PrepareThread prepareThread;
            Application.EnableVisualStyles();
            Application.SetCompatibleTextRenderingDefault(false);

            TextWriterTraceListener tlog = new TimeDateTraceListener(Application.CommonAppDataPath + "\\Install.log", "Install");
            Trace.Listeners.Add(tlog);
            Trace.AutoFlush = true;

            progressWindow = new Progress();
            prepareThread = new PrepareThread(args, progressWindow);

            Thread backgroundThread = new Thread(new ThreadStart(prepareThread.Run));

            progressWindow.Show();
            backgroundThread.Start();

            Application.Run(progressWindow);
        }
Пример #4
0
        static void Main(string[] args)
        {
            Progress progressWindow;
            PrepareThread prepareThread;
            Application.EnableVisualStyles();
            Application.SetCompatibleTextRenderingDefault(false);

            progressWindow = new Progress();
            prepareThread = new PrepareThread(args, progressWindow);

            Thread backgroundThread = new Thread(new ThreadStart(prepareThread.Run));

            progressWindow.Show();
            backgroundThread.Start();

            Application.Run(progressWindow);
        }