Client/Program.cs
author sl
Thu, 14 Aug 2014 18:37:23 +0200
changeset 29 c4e03315035c
parent 25 6f10207a89a8
child 31 f19b04646b6a
permissions -rw-r--r--
Client/Server duplex is still a mess in C#.
     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         public static MainForm iMainForm;
    12 
    13         /// <summary>
    14         /// The main entry point for the application.
    15         /// </summary>
    16         [STAThread]
    17         static public void Main()
    18         {
    19             //Set high priority to our process to avoid lags when rendering to our screen
    20             System.Diagnostics.Process.GetCurrentProcess().PriorityClass = System.Diagnostics.ProcessPriorityClass.AboveNormal;
    21 
    22             Application.EnableVisualStyles();
    23             Application.SetCompatibleTextRenderingDefault(false);
    24             iMainForm = new MainForm();
    25             Application.Run(iMainForm);
    26         }
    27     }
    28 }