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