Server/Program.cs
author sl
Mon, 12 Jan 2015 08:33:53 +0100
changeset 87 26e884e49594
parent 31 f19b04646b6a
child 92 787dee27fc0a
permissions -rw-r--r--
Moving DLL to please Visual Studio.
     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.ApplicationExit += new EventHandler(OnApplicationExit);
    21 			//
    22             Application.EnableVisualStyles();
    23             Application.SetCompatibleTextRenderingDefault(false);
    24             iMainForm = new MainForm();
    25             Application.Run(iMainForm);
    26         }
    27 
    28 		/// <summary>
    29 		/// Occurs after form closing.
    30 		/// </summary>
    31 		/// <param name="sender"></param>
    32 		/// <param name="e"></param>
    33 		static private void OnApplicationExit(object sender, EventArgs e)
    34 		{
    35 
    36 		}
    37     }
    38 }