Client/Program.cs
author sl
Thu, 14 Aug 2014 09:30:14 +0200
changeset 25 6f10207a89a8
parent 21 274a6b27c3f9
child 27 9c49c04fc620
permissions -rw-r--r--
Fixing hang when closing server with live client due to client instance context
throwing an exception when closing.
     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 SharpDisplayClient
     8 {
     9     static public class Program
    10     {
    11         public static MainForm iMainForm;
    12 
    13         /// <summary>
    14         /// The main entry point for the application.
    15         /// </summary>
    16         [STAThread]
    17         static public void Main()
    18         {
    19             Application.EnableVisualStyles();
    20             Application.SetCompatibleTextRenderingDefault(false);
    21             iMainForm = new MainForm();
    22             Application.Run(iMainForm);
    23         }
    24     }
    25 }