Server/Program.cs
author sl
Fri, 22 Aug 2014 10:55:34 +0200
changeset 42 a9048f350975
parent 18 7acec5059fa6
child 86 829dd13b1048
permissions -rw-r--r--
Now that we fixed that nasty iStringFormat static bug we could cleanup and
simplify our alginment code.
     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 }