1.1 --- a/Client/Program.cs Tue Feb 02 19:50:33 2016 +0100
1.2 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000
1.3 @@ -1,73 +0,0 @@
1.4 -//
1.5 -// Copyright (C) 2014-2015 Stéphane Lenclud.
1.6 -//
1.7 -// This file is part of SharpDisplayManager.
1.8 -//
1.9 -// SharpDisplayManager is free software: you can redistribute it and/or modify
1.10 -// it under the terms of the GNU General Public License as published by
1.11 -// the Free Software Foundation, either version 3 of the License, or
1.12 -// (at your option) any later version.
1.13 -//
1.14 -// SharpDisplayManager is distributed in the hope that it will be useful,
1.15 -// but WITHOUT ANY WARRANTY; without even the implied warranty of
1.16 -// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
1.17 -// GNU General Public License for more details.
1.18 -//
1.19 -// You should have received a copy of the GNU General Public License
1.20 -// along with SharpDisplayManager. If not, see <http://www.gnu.org/licenses/>.
1.21 -//
1.22 -
1.23 -using System;
1.24 -using System.Collections.Generic;
1.25 -using System.Linq;
1.26 -using System.Threading.Tasks;
1.27 -using System.Windows.Forms;
1.28 -using System.Drawing;
1.29 -
1.30 -namespace SharpDisplayClient
1.31 -{
1.32 - static public class Program
1.33 - {
1.34 - /// <summary>
1.35 - /// The main entry point for the application.
1.36 - /// </summary>
1.37 - [STAThread]
1.38 - static public void Main()
1.39 - {
1.40 - //Set high priority to our process to avoid lags when rendering to our screen
1.41 - System.Diagnostics.Process.GetCurrentProcess().PriorityClass = System.Diagnostics.ProcessPriorityClass.AboveNormal;
1.42 -
1.43 - Application.EnableVisualStyles();
1.44 - Application.SetCompatibleTextRenderingDefault(false);
1.45 - Application.Run(new MainForm());
1.46 - }
1.47 -
1.48 - [STAThread]
1.49 - static public void MainWithParams(object aParams)
1.50 - {
1.51 - //Set high priority to our process to avoid lags when rendering to our screen
1.52 - System.Diagnostics.Process.GetCurrentProcess().PriorityClass = System.Diagnostics.ProcessPriorityClass.AboveNormal;
1.53 -
1.54 - Application.EnableVisualStyles();
1.55 - Application.SetCompatibleTextRenderingDefault(false);
1.56 - MainForm mainForm = new MainForm();
1.57 - mainForm.Params = (StartParams)aParams;
1.58 - Application.Run(mainForm);
1.59 - }
1.60 -
1.61 - }
1.62 -
1.63 - public class StartParams
1.64 - {
1.65 - public StartParams(Point aLocation, string aTopText="", string aBottomText="")
1.66 - {
1.67 - TopText = aTopText;
1.68 - BottomText = aBottomText;
1.69 - Location = aLocation;
1.70 - }
1.71 -
1.72 - public string TopText { get; set; }
1.73 - public string BottomText { get; set; }
1.74 - public Point Location { get; set; }
1.75 - }
1.76 -}