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.
sl@18
     1
using System;
sl@18
     2
using System.Collections.Generic;
sl@18
     3
using System.Linq;
sl@18
     4
using System.Threading.Tasks;
sl@18
     5
using System.Windows.Forms;
sl@18
     6
sl@18
     7
namespace SharpDisplayClient
sl@18
     8
{
sl@25
     9
    static public class Program
sl@18
    10
    {
sl@21
    11
        public static MainForm iMainForm;
sl@21
    12
sl@18
    13
        /// <summary>
sl@18
    14
        /// The main entry point for the application.
sl@18
    15
        /// </summary>
sl@18
    16
        [STAThread]
sl@25
    17
        static public void Main()
sl@18
    18
        {
sl@18
    19
            Application.EnableVisualStyles();
sl@18
    20
            Application.SetCompatibleTextRenderingDefault(false);
sl@21
    21
            iMainForm = new MainForm();
sl@21
    22
            Application.Run(iMainForm);
sl@18
    23
        }
sl@18
    24
    }
sl@18
    25
}