Client/Program.cs
author sl
Sun, 11 Jan 2015 19:00:16 +0100
changeset 86 829dd13b1048
parent 27 9c49c04fc620
child 106 32270ff62819
permissions -rw-r--r--
Adding app exit event handler.
sl@18
     1
using System;
sl@18
     2
using System.Collections.Generic;
sl@18
     3
using System.Linq;
sl@18
     4
using System.Threading.Tasks;
sl@18
     5
using System.Windows.Forms;
sl@18
     6
sl@18
     7
namespace SharpDisplayClient
sl@18
     8
{
sl@25
     9
    static public class Program
sl@18
    10
    {
sl@18
    11
        /// <summary>
sl@18
    12
        /// The main entry point for the application.
sl@18
    13
        /// </summary>
sl@18
    14
        [STAThread]
sl@25
    15
        static public void Main()
sl@18
    16
        {
sl@27
    17
            //Set high priority to our process to avoid lags when rendering to our screen
sl@27
    18
            System.Diagnostics.Process.GetCurrentProcess().PriorityClass = System.Diagnostics.ProcessPriorityClass.AboveNormal;
sl@27
    19
sl@18
    20
            Application.EnableVisualStyles();
sl@18
    21
            Application.SetCompatibleTextRenderingDefault(false);
sl@31
    22
            Application.Run(new MainForm());
sl@18
    23
        }
sl@18
    24
    }
sl@18
    25
}