Example #1
0
        static void Main()
        {
            client_connected = false;
            client_paused = false;
            update_delay = 16;

            _updateGuiThreadQuit = false;
            updateGuiThread = new Thread(new ThreadStart(updateGui));

            Application.EnableVisualStyles();
            Application.SetCompatibleTextRenderingDefault(false);
            form = new MouserMainWindow();
            updateGuiThread.Start();
            Application.Run(form);

            _updateGuiThreadQuit = true;
            updateGuiThread.Join();

            client_disconnect();
        }
Example #2
0
        static void Main()
        {
            client_connected = false;
            client_paused    = false;
            update_delay     = 16;

            _updateGuiThreadQuit = false;
            updateGuiThread      = new Thread(new ThreadStart(updateGui));

            Application.EnableVisualStyles();
            Application.SetCompatibleTextRenderingDefault(false);
            form = new MouserMainWindow();
            updateGuiThread.Start();
            Application.Run(form);

            _updateGuiThreadQuit = true;
            updateGuiThread.Join();

            client_disconnect();
        }