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.
sl@0
     1
using System;
sl@0
     2
using System.Collections.Generic;
sl@0
     3
using System.Linq;
sl@0
     4
using System.Threading.Tasks;
sl@0
     5
using System.Windows.Forms;
sl@0
     6
sl@0
     7
namespace SharpDisplayManager
sl@0
     8
{
sl@0
     9
    static class Program
sl@0
    10
    {
sl@31
    11
        //WARNING: This is assuming we have a single instance of our program.
sl@31
    12
        //That is what we want but we should enforce it somehow.
sl@17
    13
        public static MainForm iMainForm;
sl@0
    14
        /// <summary>
sl@0
    15
        /// The main entry point for the application.
sl@0
    16
        /// </summary>
sl@0
    17
        [STAThread]
sl@0
    18
        static void Main()
sl@0
    19
        {
sl@0
    20
            Application.EnableVisualStyles();
sl@0
    21
            Application.SetCompatibleTextRenderingDefault(false);
sl@17
    22
            iMainForm = new MainForm();
sl@17
    23
            Application.Run(iMainForm);
sl@0
    24
        }
sl@0
    25
    }
sl@0
    26
}