1.1 --- a/Server/MainForm.cs Sun Aug 31 18:33:05 2014 +0200
1.2 +++ b/Server/MainForm.cs Sun Aug 31 21:34:58 2014 +0200
1.3 @@ -384,6 +384,17 @@
1.4 buttonPowerOn.Enabled = false;
1.5 buttonPowerOff.Enabled = false;
1.6 }
1.7 +
1.8 + if (iDisplay.SupportClock())
1.9 + {
1.10 + buttonShowClock.Enabled = true;
1.11 + buttonHideClock.Enabled = true;
1.12 + }
1.13 + else
1.14 + {
1.15 + buttonShowClock.Enabled = false;
1.16 + buttonHideClock.Enabled = false;
1.17 + }
1.18 }
1.19 else
1.20 {
1.21 @@ -394,6 +405,8 @@
1.22 trackBarBrightness.Enabled = false;
1.23 buttonPowerOn.Enabled = false;
1.24 buttonPowerOff.Enabled = false;
1.25 + buttonShowClock.Enabled = false;
1.26 + buttonHideClock.Enabled = false;
1.27 toolStripStatusLabelConnect.Text = "Disconnected";
1.28 toolStripStatusLabelPower.Text = "N/A";
1.29 }
1.30 @@ -883,6 +896,16 @@
1.31 iDisplay.PowerOff();
1.32 }
1.33
1.34 + private void buttonShowClock_Click(object sender, EventArgs e)
1.35 + {
1.36 + iDisplay.ShowClock();
1.37 + }
1.38 +
1.39 + private void buttonHideClock_Click(object sender, EventArgs e)
1.40 + {
1.41 + iDisplay.HideClock();
1.42 + }
1.43 +
1.44 }
1.45
1.46 /// <summary>