Skip to content

Commit

Permalink
Fixed tray icon
Browse files Browse the repository at this point in the history
  • Loading branch information
Zachary Sims committed Feb 2, 2014
1 parent 26472da commit bf97515
Show file tree
Hide file tree
Showing 10 changed files with 740 additions and 8 deletions.
4 changes: 3 additions & 1 deletion src/HuntnPeck/Forms/HintOverlay.Designer.cs

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

29 changes: 27 additions & 2 deletions src/HuntnPeck/Forms/OptionsForm.Designer.cs

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

3 changes: 2 additions & 1 deletion src/HuntnPeck/Forms/OptionsForm.cs
Original file line number Diff line number Diff line change
@@ -1,12 +1,13 @@
using System.Windows.Forms;

namespace HuntnPeck.Engine.Forms
namespace HuntnPeck.Forms
{
public partial class OptionsForm : Form
{
public OptionsForm()
{
InitializeComponent();
}

}
}
408 changes: 408 additions & 0 deletions src/HuntnPeck/Forms/OptionsForm.resx

Large diffs are not rendered by default.

1 change: 1 addition & 0 deletions src/HuntnPeck/Forms/TrayListener.Designer.cs

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

5 changes: 4 additions & 1 deletion src/HuntnPeck/Forms/TrayListener.cs
Original file line number Diff line number Diff line change
Expand Up @@ -96,7 +96,10 @@ protected override void SetVisibleCore(bool value)

private void menuItemOptions_Click(object sender, System.EventArgs e)
{
// TODO
using (var optionsForm = new OptionsForm())
{
optionsForm.ShowDialog();
}
}

private void menuItemExit_Click(object sender, System.EventArgs e)
Expand Down
287 changes: 287 additions & 0 deletions src/HuntnPeck/Forms/TrayListener.resx

Large diffs are not rendered by default.

3 changes: 3 additions & 0 deletions src/HuntnPeck/HuntnPeck.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -71,6 +71,9 @@
<EmbeddedResource Include="Forms\HintOverlay.resx">
<DependentUpon>HintOverlay.cs</DependentUpon>
</EmbeddedResource>
<EmbeddedResource Include="Forms\OptionsForm.resx">
<DependentUpon>OptionsForm.cs</DependentUpon>
</EmbeddedResource>
<EmbeddedResource Include="Forms\TrayListener.resx">
<DependentUpon>TrayListener.cs</DependentUpon>
</EmbeddedResource>
Expand Down
2 changes: 1 addition & 1 deletion src/HuntnPeck/HuntnPeckApplicationContext.cs
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@ protected override void Dispose(bool disposing)
_hintRenderer.Dispose();
}

base.Dispose();
base.Dispose(disposing);
}
}
}
6 changes: 4 additions & 2 deletions src/HuntnPeck/Renderer/HintRenderer.cs
Original file line number Diff line number Diff line change
Expand Up @@ -131,10 +131,12 @@ public void Dispose()
_hintBoxBrush.Dispose();
_hintBoundingBoxPen.Dispose();

foreach (var kv in _hintUnderlines)
foreach (var pen in _hintUnderlines.Values)
{
kv.Value.Dispose();
pen.Dispose();
}

GC.SuppressFinalize(this);
}
}
}

0 comments on commit bf97515

Please sign in to comment.