1.1 --- a/Server/MainForm.cs Sun Feb 08 18:56:43 2015 +0100
1.2 +++ b/Server/MainForm.cs Sun Feb 08 20:26:36 2015 +0100
1.3 @@ -233,7 +233,6 @@
1.4 iMultiMediaDevice.AudioEndpointVolume.Mute = checkBoxMute.Checked;
1.5 }
1.6
1.7 -
1.8 /// <summary>
1.9 /// Device State Changed
1.10 /// </summary>
1.11 @@ -885,6 +884,7 @@
1.12 checkBoxStartMinimized.Checked = Properties.Settings.Default.StartMinimized;
1.13 checkBoxReverseScreen.Checked = cds.ReverseScreen;
1.14 checkBoxInverseColors.Checked = cds.InverseColors;
1.15 + checkBoxShowVolumeLabel.Checked = cds.ShowVolumeLabel;
1.16 checkBoxScaleToFit.Checked = cds.ScaleToFit;
1.17 maskedTextBoxMinFontSize.Enabled = cds.ScaleToFit;
1.18 labelMinFontSize.Enabled = cds.ScaleToFit;
1.19 @@ -955,11 +955,25 @@
1.20 buttonShowClock.Enabled = false;
1.21 buttonHideClock.Enabled = false;
1.22 }
1.23 +
1.24 +
1.25 + //Check if Volume Label is supported. To date only MDM166AA supports that crap :)
1.26 + checkBoxShowVolumeLabel.Enabled = iDisplay.IconCount(Display.TMiniDisplayIconType.EMiniDisplayIconVolumeLabel)>0;
1.27 +
1.28 + if (cds.ShowVolumeLabel)
1.29 + {
1.30 + iDisplay.SetIconOn(Display.TMiniDisplayIconType.EMiniDisplayIconVolumeLabel);
1.31 + }
1.32 + else
1.33 + {
1.34 + iDisplay.SetIconOff(Display.TMiniDisplayIconType.EMiniDisplayIconVolumeLabel);
1.35 + }
1.36 }
1.37 else
1.38 {
1.39 //Display is connection not available
1.40 //Reflect that in our UI
1.41 + checkBoxShowVolumeLabel.Enabled = false;
1.42 tableLayoutPanel.Enabled = false;
1.43 panelDisplay.Enabled = false;
1.44 buttonFill.Enabled = false;
1.45 @@ -978,6 +992,17 @@
1.46 }
1.47
1.48
1.49 + /// <summary>
1.50 + ///
1.51 + /// </summary>
1.52 + /// <param name="sender"></param>
1.53 + /// <param name="e"></param>
1.54 + private void checkBoxShowVolumeLabel_CheckedChanged(object sender, EventArgs e)
1.55 + {
1.56 + cds.ShowVolumeLabel = checkBoxShowVolumeLabel.Checked;
1.57 + Properties.Settings.Default.Save();
1.58 + UpdateStatus();
1.59 + }
1.60
1.61 private void checkBoxShowBorders_CheckedChanged(object sender, EventArgs e)
1.62 {
1.63 @@ -1915,7 +1940,6 @@
1.64 //We need to re-create our bitmap.
1.65 iCreateBitmap = true;
1.66 }
1.67 -
1.68 }
1.69
1.70 /// <summary>