Clear the screen on startup if not in debug mode.
authorsl
Sun, 18 Jan 2015 19:01:29 +0100
changeset 96f3322473db40
parent 95 a4a02cc952a0
child 97 be7183f8c14c
Clear the screen on startup if not in debug mode.
Server/MainForm.cs
Server/SharpDisplayManager.csproj
     1.1 --- a/Server/MainForm.cs	Sun Jan 18 18:32:32 2015 +0100
     1.2 +++ b/Server/MainForm.cs	Sun Jan 18 19:01:29 2015 +0100
     1.3 @@ -38,7 +38,6 @@
     1.4      /// </summary>
     1.5      public partial class MainForm : Form
     1.6      {
     1.7 -
     1.8          DateTime LastTickTime;
     1.9          Display iDisplay;
    1.10          System.Drawing.Bitmap iBmp;
    1.11 @@ -114,10 +113,6 @@
    1.12                  OpenDisplayConnection();
    1.13              }
    1.14  
    1.15 -			//Check if "run on Windows startup" is enabled
    1.16 -			checkBoxAutoStart.Checked=iStartupManager.Startup;
    1.17 -
    1.18 -
    1.19  			//Setup notification icon
    1.20  			SetupTrayIcon();
    1.21  
    1.22 @@ -126,6 +121,13 @@
    1.23  			{
    1.24  				Visible = false;
    1.25  			}
    1.26 +
    1.27 +#if !DEBUG
    1.28 +			//When not debugging we want the screen to be empty until a client takes over 
    1.29 +			tableLayoutPanel.Controls.Clear();
    1.30 +			tableLayoutPanel.RowStyles.Clear();
    1.31 +			tableLayoutPanel.ColumnStyles.Clear();
    1.32 +#endif
    1.33          }
    1.34  
    1.35  		/// <summary>
    1.36 @@ -615,6 +617,9 @@
    1.37              }
    1.38  
    1.39              CheckFontHeight();
    1.40 +			//Check if "run on Windows startup" is enabled
    1.41 +			checkBoxAutoStart.Checked = iStartupManager.Startup;
    1.42 +			//
    1.43              checkBoxConnectOnStartup.Checked = Properties.Settings.Default.DisplayConnectOnStartup;
    1.44  			checkBoxMinimizeToTray.Checked = Properties.Settings.Default.MinimizeToTray;
    1.45  			checkBoxStartMinimized.Checked = Properties.Settings.Default.StartMinimized;
     2.1 --- a/Server/SharpDisplayManager.csproj	Sun Jan 18 18:32:32 2015 +0100
     2.2 +++ b/Server/SharpDisplayManager.csproj	Sun Jan 18 19:01:29 2015 +0100
     2.3 @@ -31,7 +31,7 @@
     2.4      <CreateWebPageOnPublish>true</CreateWebPageOnPublish>
     2.5      <WebPage>index.htm</WebPage>
     2.6      <OpenBrowserOnPublish>false</OpenBrowserOnPublish>
     2.7 -    <ApplicationRevision>22</ApplicationRevision>
     2.8 +    <ApplicationRevision>23</ApplicationRevision>
     2.9      <ApplicationVersion>0.1.0.%2a</ApplicationVersion>
    2.10      <UseApplicationTrust>false</UseApplicationTrust>
    2.11      <CreateDesktopShortcut>true</CreateDesktopShortcut>