Server/MainForm.cs
changeset 194 b0c0aa5aea05
parent 189 bedae992f4ee
child 201 6213f42f1983
     1.1 --- a/Server/MainForm.cs	Wed Feb 03 16:04:37 2016 +0100
     1.2 +++ b/Server/MainForm.cs	Wed Feb 03 17:34:59 2016 +0100
     1.3 @@ -111,7 +111,7 @@
     1.4  		private SharpLib.Notification.Control iNotifyIcon;
     1.5  
     1.6          /// <summary>
     1.7 -        /// System recording notifcation icon.
     1.8 +        /// System recording notification icon.
     1.9          /// </summary>
    1.10          private SharpLib.Notification.Control iRecordingNotification;
    1.11  
    1.12 @@ -229,6 +229,12 @@
    1.13  
    1.14  			//Register for HID events
    1.15  			RegisterHidDevices();
    1.16 +
    1.17 +            //Start Idle client if needed
    1.18 +            if (Properties.Settings.Default.StartIdleClient)
    1.19 +            {
    1.20 +                StartIdleClient();
    1.21 +            }
    1.22          }
    1.23  
    1.24  		/// <summary>
    1.25 @@ -1100,7 +1106,9 @@
    1.26              checkBoxConnectOnStartup.Checked = Properties.Settings.Default.DisplayConnectOnStartup;
    1.27  			checkBoxMinimizeToTray.Checked = Properties.Settings.Default.MinimizeToTray;
    1.28  			checkBoxStartMinimized.Checked = Properties.Settings.Default.StartMinimized;
    1.29 -			labelStartFileName.Text = Properties.Settings.Default.StartFileName;
    1.30 +            iCheckBoxStartIdleClient.Checked = Properties.Settings.Default.StartIdleClient;
    1.31 +            labelStartFileName.Text = Properties.Settings.Default.StartFileName;
    1.32 +
    1.33  
    1.34              //Try find our drive in our drive list
    1.35              int opticalDriveItemIndex=0;
    1.36 @@ -1292,7 +1300,13 @@
    1.37  			Properties.Settings.Default.Save();
    1.38  		}
    1.39  
    1.40 -		private void checkBoxAutoStart_CheckedChanged(object sender, EventArgs e)
    1.41 +        private void checkBoxStartIdleClient_CheckedChanged(object sender, EventArgs e)
    1.42 +        {
    1.43 +            Properties.Settings.Default.StartIdleClient = iCheckBoxStartIdleClient.Checked;
    1.44 +            Properties.Settings.Default.Save();
    1.45 +        }
    1.46 +
    1.47 +        private void checkBoxAutoStart_CheckedChanged(object sender, EventArgs e)
    1.48  		{
    1.49  			iStartupManager.Startup = checkBoxAutoStart.Checked;
    1.50  		}