Server/Program.cs
author sl
Sat, 30 Aug 2014 18:45:06 +0200
changeset 46 0c0ee86760ea
parent 18 7acec5059fa6
child 86 829dd13b1048
permissions -rw-r--r--
Adding support for display type selection.
     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 SharpDisplayManager
     8 {
     9     static class Program
    10     {
    11         //WARNING: This is assuming we have a single instance of our program.
    12         //That is what we want but we should enforce it somehow.
    13         public static MainForm iMainForm;
    14         /// <summary>
    15         /// The main entry point for the application.
    16         /// </summary>
    17         [STAThread]
    18         static void Main()
    19         {
    20             Application.EnableVisualStyles();
    21             Application.SetCompatibleTextRenderingDefault(false);
    22             iMainForm = new MainForm();
    23             Application.Run(iMainForm);
    24         }
    25     }
    26 }