Client/Program.cs
author sl
Tue, 19 Aug 2014 21:26:17 +0200
changeset 37 405a2590eda4
parent 27 9c49c04fc620
child 106 32270ff62819
permissions -rw-r--r--
Font height now also checked on startup.
     1 using System;
     2 using System.Collections.Generic;
     3 using System.Linq;
     4 using System.Threading.Tasks;
     5 using System.Windows.Forms;
     6 
     7 namespace SharpDisplayClient
     8 {
     9     static public class Program
    10     {
    11         /// <summary>
    12         /// The main entry point for the application.
    13         /// </summary>
    14         [STAThread]
    15         static public void Main()
    16         {
    17             //Set high priority to our process to avoid lags when rendering to our screen
    18             System.Diagnostics.Process.GetCurrentProcess().PriorityClass = System.Diagnostics.ProcessPriorityClass.AboveNormal;
    19 
    20             Application.EnableVisualStyles();
    21             Application.SetCompatibleTextRenderingDefault(false);
    22             Application.Run(new MainForm());
    23         }
    24     }
    25 }