Client/Program.cs
author sl
Mon, 22 Sep 2014 16:04:26 +0200
changeset 62 ac698f4e1b36
parent 27 9c49c04fc620
child 106 32270ff62819
permissions -rw-r--r--
Adding the possibility for clients to define a basic layout.
     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 }