Skip to content

Commit

Permalink
Made the icon file an embedded resource, changed the icon in the proj…
Browse files Browse the repository at this point in the history
…ect properties / executable, the setup creates a start menu entry now
  • Loading branch information
SamDel committed Mar 16, 2017
1 parent 9fd4479 commit f41f74f
Show file tree
Hide file tree
Showing 4 changed files with 447 additions and 189 deletions.
Binary file modified Releases/Setup 0.2.zip
Binary file not shown.
Expand Up @@ -106,13 +106,8 @@ private void AddNotifyIcon()
contextMenu.MenuItems.AddRange(new MenuItem[] { menuItem });

notifyIcon = new NotifyIcon();
try
{
notifyIcon.Icon = new Icon(@"ChromeCast.ico");
}
catch (Exception)
{
}
System.ComponentModel.ComponentResourceManager resources = new System.ComponentModel.ComponentResourceManager(typeof(MainForm));
notifyIcon.Icon = ((Icon)(resources.GetObject("$this.Icon")));
notifyIcon.Visible = true;
notifyIcon.Text = "ChromeCast Desktop Streamer";
notifyIcon.ContextMenu = contextMenu;
Expand Down
Expand Up @@ -32,6 +32,9 @@
<ErrorReport>prompt</ErrorReport>
<WarningLevel>4</WarningLevel>
</PropertyGroup>
<PropertyGroup>
<ApplicationIcon>ChromeCast.ico</ApplicationIcon>
</PropertyGroup>
<ItemGroup>
<Reference Include="Google.ProtocolBuffers, Version=2.4.1.555, Culture=neutral, PublicKeyToken=55f7125234beb589, processorArchitecture=MSIL">
<HintPath>packages\Google.ProtocolBuffers.2.4.1.555\lib\net40\Google.ProtocolBuffers.dll</HintPath>
Expand Down Expand Up @@ -166,9 +169,9 @@
</None>
</ItemGroup>
<ItemGroup>
<Content Include="ChromeCast.ico">
<EmbeddedResource Include="ChromeCast.ico">
<CopyToOutputDirectory>Always</CopyToOutputDirectory>
</Content>
</EmbeddedResource>
</ItemGroup>
<ItemGroup />
<Import Project="$(MSBuildToolsPath)\Microsoft.CSharp.targets" />
Expand Down

0 comments on commit f41f74f

Please sign in to comment.