Server/MainForm.cs
changeset 126 791786747ba6
parent 124 b3cc1093c22b
child 135 2edc5da1796e
     1.1 --- a/Server/MainForm.cs	Tue Mar 17 20:12:00 2015 +0100
     1.2 +++ b/Server/MainForm.cs	Wed Mar 18 18:31:37 2015 +0100
     1.3 @@ -63,7 +63,8 @@
     1.4      /// <summary>
     1.5      /// Our Display manager main form
     1.6      /// </summary>
     1.7 -	public partial class MainForm : Form, IMMNotificationClient
     1.8 +	[System.ComponentModel.DesignerCategory("Form")]
     1.9 +	public partial class MainForm : MainFormHid, IMMNotificationClient
    1.10      {
    1.11          DateTime LastTickTime;
    1.12          Display iDisplay;
    1.13 @@ -996,6 +997,7 @@
    1.14              checkBoxConnectOnStartup.Checked = Properties.Settings.Default.DisplayConnectOnStartup;
    1.15  			checkBoxMinimizeToTray.Checked = Properties.Settings.Default.MinimizeToTray;
    1.16  			checkBoxStartMinimized.Checked = Properties.Settings.Default.StartMinimized;
    1.17 +			labelStartFileName.Text = Properties.Settings.Default.StartFileName;
    1.18              checkBoxReverseScreen.Checked = cds.ReverseScreen;
    1.19              checkBoxInverseColors.Checked = cds.InverseColors;
    1.20  			checkBoxShowVolumeLabel.Checked = cds.ShowVolumeLabel;
    1.21 @@ -2023,6 +2025,26 @@
    1.22  			//We need to re-create our bitmap.
    1.23  			iCreateBitmap = true;
    1.24  		}
    1.25 +
    1.26 +		/// <summary>
    1.27 +		/// 
    1.28 +		/// </summary>
    1.29 +		/// <param name="sender"></param>
    1.30 +		/// <param name="e"></param>
    1.31 +		private void buttonSelectFile_Click(object sender, EventArgs e)
    1.32 +		{
    1.33 +			//openFileDialog1.InitialDirectory = "c:\\";
    1.34 +			//openFileDialog.Filter = "EXE files (*.exe)|*.exe|All files (*.*)|*.*";
    1.35 +			//openFileDialog.FilterIndex = 1;
    1.36 +			openFileDialog.RestoreDirectory = true;
    1.37 +
    1.38 +			if (DlgBox.ShowDialog(openFileDialog) == DialogResult.OK)
    1.39 +			{
    1.40 +				labelStartFileName.Text = openFileDialog.FileName;
    1.41 +				Properties.Settings.Default.StartFileName = openFileDialog.FileName;
    1.42 +				Properties.Settings.Default.Save();
    1.43 +			}
    1.44 +		}
    1.45      }
    1.46  
    1.47      /// <summary>