Server: Adding recording icon.
1.1 --- a/Server/MainForm.cs Thu Jan 21 15:00:05 2016 +0100
1.2 +++ b/Server/MainForm.cs Thu Jan 21 18:16:15 2016 +0100
1.3 @@ -105,11 +105,17 @@
1.4 private StartupManager iStartupManager;
1.5
1.6 /// <summary>
1.7 - /// System tray icon.
1.8 + /// System notification icon used to hide our application from the task bar.
1.9 /// </summary>
1.10 private SharpLib.Notification.Control iNotifyIcon;
1.11
1.12 /// <summary>
1.13 + /// System recording notifcation icon.
1.14 + /// </summary>
1.15 + private SharpLib.Notification.Control iRecordingNotification;
1.16 +
1.17 +
1.18 + /// <summary>
1.19 /// Allow user to receive window messages;
1.20 /// </summary>
1.21 public event WndProcDelegate OnWndProc;
1.22 @@ -129,8 +135,9 @@
1.23 iClients = new Dictionary<string, ClientData>();
1.24 iStartupManager = new StartupManager();
1.25 iNotifyIcon = new SharpLib.Notification.Control();
1.26 + iRecordingNotification = new SharpLib.Notification.Control();
1.27
1.28 - //Have our designer initialize its controls
1.29 + //Have our designer initialize its controls
1.30 InitializeComponent();
1.31
1.32 //Populate device types
1.33 @@ -193,8 +200,11 @@
1.34 //Setup notification icon
1.35 SetupTrayIcon();
1.36
1.37 - // To make sure start up with minimize to tray works
1.38 - if (WindowState == FormWindowState.Minimized && Properties.Settings.Default.MinimizeToTray)
1.39 + //Setup recording notification
1.40 + SetupRecordingNotification();
1.41 +
1.42 + // To make sure start up with minimize to tray works
1.43 + if (WindowState == FormWindowState.Minimized && Properties.Settings.Default.MinimizeToTray)
1.44 {
1.45 Visible = false;
1.46 }
1.47 @@ -579,6 +589,16 @@
1.48 }
1.49
1.50 /// <summary>
1.51 + ///
1.52 + /// </summary>
1.53 + private void SetupRecordingNotification()
1.54 + {
1.55 + iRecordingNotification.Icon = GetIcon("record.ico");
1.56 + iRecordingNotification.Text = "No recording";
1.57 + iRecordingNotification.Visible = true;
1.58 + }
1.59 +
1.60 + /// <summary>
1.61 /// Access icons from embedded resources.
1.62 /// </summary>
1.63 /// <param name="aName"></param>
2.1 Binary file Server/Resources/record.ico has changed
3.1 --- a/Server/SharpDisplayManager.csproj Thu Jan 21 15:00:05 2016 +0100
3.2 +++ b/Server/SharpDisplayManager.csproj Thu Jan 21 18:16:15 2016 +0100
3.3 @@ -85,7 +85,7 @@
3.4 <Prefer32Bit>false</Prefer32Bit>
3.5 </PropertyGroup>
3.6 <PropertyGroup>
3.7 - <SignManifests>true</SignManifests>
3.8 + <SignManifests>false</SignManifests>
3.9 </PropertyGroup>
3.10 <PropertyGroup>
3.11 <ManifestCertificateThumbprint>70A149AB9F89E507D9411D109553BE22455895D6</ManifestCertificateThumbprint>
3.12 @@ -279,6 +279,7 @@
3.13 <Content Include="libcec.dll">
3.14 <CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory>
3.15 </Content>
3.16 + <EmbeddedResource Include="Resources\record.ico" />
3.17 </ItemGroup>
3.18 <Import Project="$(MSBuildToolsPath)\Microsoft.CSharp.targets" />
3.19 <Import Project="..\packages\LibMiniDisplay.1.1.8\build\LibMiniDisplay.targets" Condition="Exists('..\packages\LibMiniDisplay.1.1.8\build\LibMiniDisplay.targets')" />