diff -r 9e48cc704a69 -r 606c22398045 Server/MainForm.cs
--- a/Server/MainForm.cs Mon Feb 09 18:25:14 2015 +0100
+++ b/Server/MainForm.cs Mon Feb 09 20:06:30 2015 +0100
@@ -226,11 +226,44 @@
{
if (iDisplay.IsOpen())
{
- iDisplay.SetIconOnOff(Display.TMiniDisplayIconType.EMiniDisplayIconNetwork, iNetworkManager.NetworkListManager.IsConnectedToInternet);
+ iDisplay.SetIconOnOff(Display.TMiniDisplayIconType.EMiniDisplayIconInternet, iNetworkManager.NetworkListManager.IsConnectedToInternet);
+ iDisplay.SetIconOnOff(Display.TMiniDisplayIconType.EMiniDisplayIconNetworkSignal, iNetworkManager.NetworkListManager.IsConnected);
}
}
+ int iLastNetworkIconIndex = 0;
+ int iUpdateCountSinceLastNetworkAnimation = 0;
+
+ ///
+ ///
+ ///
+ private void UpdateNetworkSignal(DateTime aLastTickTime, DateTime aNewTickTime)
+ {
+ iUpdateCountSinceLastNetworkAnimation++;
+ iUpdateCountSinceLastNetworkAnimation = iUpdateCountSinceLastNetworkAnimation % 4;
+
+ if (iDisplay.IsOpen() && iNetworkManager.NetworkListManager.IsConnected && iUpdateCountSinceLastNetworkAnimation==0)
+ {
+ int iconCount=iDisplay.IconCount(Display.TMiniDisplayIconType.EMiniDisplayIconNetworkSignal);
+ iLastNetworkIconIndex++;
+ iLastNetworkIconIndex = iLastNetworkIconIndex % (iconCount+1);
+ for (int i=0;i
/// Receive volume change notification and reflect changes on our slider.
///
@@ -730,6 +763,8 @@
//Update our animations
DateTime NewTickTime = DateTime.Now;
+ UpdateNetworkSignal(LastTickTime, NewTickTime);
+
//Update animation for all our marquees
foreach (Control ctrl in tableLayoutPanel.Controls)
{