Moving DLL to please Visual Studio.
2 using System.Collections.Generic;
4 using System.Threading.Tasks;
5 using System.Windows.Forms;
7 namespace SharpDisplayManager
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;
15 /// The main entry point for the application.
20 Application.ApplicationExit += new EventHandler(OnApplicationExit);
22 Application.EnableVisualStyles();
23 Application.SetCompatibleTextRenderingDefault(false);
24 iMainForm = new MainForm();
25 Application.Run(iMainForm);
29 /// Occurs after form closing.
31 /// <param name="sender"></param>
32 /// <param name="e"></param>
33 static private void OnApplicationExit(object sender, EventArgs e)