diff -r debe115b3b22 -r 5c61a13c4241 Server/MainForm.cs
--- a/Server/MainForm.cs Sun Feb 08 18:56:43 2015 +0100
+++ b/Server/MainForm.cs Sun Feb 08 20:26:36 2015 +0100
@@ -233,7 +233,6 @@
iMultiMediaDevice.AudioEndpointVolume.Mute = checkBoxMute.Checked;
}
-
///
/// Device State Changed
///
@@ -885,6 +884,7 @@
checkBoxStartMinimized.Checked = Properties.Settings.Default.StartMinimized;
checkBoxReverseScreen.Checked = cds.ReverseScreen;
checkBoxInverseColors.Checked = cds.InverseColors;
+ checkBoxShowVolumeLabel.Checked = cds.ShowVolumeLabel;
checkBoxScaleToFit.Checked = cds.ScaleToFit;
maskedTextBoxMinFontSize.Enabled = cds.ScaleToFit;
labelMinFontSize.Enabled = cds.ScaleToFit;
@@ -955,11 +955,25 @@
buttonShowClock.Enabled = false;
buttonHideClock.Enabled = false;
}
+
+
+ //Check if Volume Label is supported. To date only MDM166AA supports that crap :)
+ checkBoxShowVolumeLabel.Enabled = iDisplay.IconCount(Display.TMiniDisplayIconType.EMiniDisplayIconVolumeLabel)>0;
+
+ if (cds.ShowVolumeLabel)
+ {
+ iDisplay.SetIconOn(Display.TMiniDisplayIconType.EMiniDisplayIconVolumeLabel);
+ }
+ else
+ {
+ iDisplay.SetIconOff(Display.TMiniDisplayIconType.EMiniDisplayIconVolumeLabel);
+ }
}
else
{
//Display is connection not available
//Reflect that in our UI
+ checkBoxShowVolumeLabel.Enabled = false;
tableLayoutPanel.Enabled = false;
panelDisplay.Enabled = false;
buttonFill.Enabled = false;
@@ -978,6 +992,17 @@
}
+ ///
+ ///
+ ///
+ ///
+ ///
+ private void checkBoxShowVolumeLabel_CheckedChanged(object sender, EventArgs e)
+ {
+ cds.ShowVolumeLabel = checkBoxShowVolumeLabel.Checked;
+ Properties.Settings.Default.Save();
+ UpdateStatus();
+ }
private void checkBoxShowBorders_CheckedChanged(object sender, EventArgs e)
{
@@ -1915,7 +1940,6 @@
//We need to re-create our bitmap.
iCreateBitmap = true;
}
-
}
///