Server/Program.cs
author sl
Fri, 15 Aug 2014 11:11:17 +0200
changeset 31 f19b04646b6a
parent 18 7acec5059fa6
child 86 829dd13b1048
permissions -rw-r--r--
Fixing our client issue with static MainForm overwritten when using multiple clients.
That was basically our issue with broadcast not working the way it should.
     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 }