More consistent clock and clear support.
2 using System.Collections.Generic;
4 using System.Threading.Tasks;
5 using System.Windows.Forms;
8 namespace SharpDisplayClient
10 static public class Program
13 /// The main entry point for the application.
16 static public void Main()
18 //Set high priority to our process to avoid lags when rendering to our screen
19 System.Diagnostics.Process.GetCurrentProcess().PriorityClass = System.Diagnostics.ProcessPriorityClass.AboveNormal;
21 Application.EnableVisualStyles();
22 Application.SetCompatibleTextRenderingDefault(false);
23 Application.Run(new MainForm());
27 static public void MainWithParams(object aParams)
29 //Set high priority to our process to avoid lags when rendering to our screen
30 System.Diagnostics.Process.GetCurrentProcess().PriorityClass = System.Diagnostics.ProcessPriorityClass.AboveNormal;
32 Application.EnableVisualStyles();
33 Application.SetCompatibleTextRenderingDefault(false);
34 MainForm mainForm = new MainForm();
35 mainForm.Params = (StartParams)aParams;
36 Application.Run(mainForm);
41 public class StartParams
43 public StartParams(Point aLocation, string aTopText="", string aBottomText="")
46 BottomText = aBottomText;
50 public string TopText { get; set; }
51 public string BottomText { get; set; }
52 public Point Location { get; set; }