Skip to content

Commit 4dc97c3

Browse files
authored
Merge pull request #88 from npot2/master
Add new option - horse
2 parents 73cbc0c + 9568ced commit 4dc97c3

31 files changed

+350
-1
lines changed

RunCat/Program.cs

Lines changed: 14 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -88,6 +88,10 @@ public RunCatApplicationContext()
8888
new ToolStripMenuItem("Parrot", null, SetRunner)
8989
{
9090
Checked = runner.Equals("parrot")
91+
},
92+
new ToolStripMenuItem("Horse", null, SetRunner)
93+
{
94+
Checked = runner.Equals("horse")
9195
}
9296
});
9397

@@ -201,7 +205,16 @@ private void SetIcons()
201205
{
202206
string prefix = 0 < manualTheme.Length ? manualTheme : systemTheme;
203207
ResourceManager rm = Resources.ResourceManager;
204-
int capacity = runner.Equals("cat") ? 5 : 10;
208+
// default runner is cat
209+
int capacity = 5;
210+
if (runner.Equals("parrot"))
211+
{
212+
capacity = 10;
213+
}
214+
else if (runner.Equals("horse"))
215+
{
216+
capacity = 14;
217+
}
205218
List<Icon> list = new List<Icon>(capacity);
206219
for (int i = 0; i < capacity; i++)
207220
{

RunCat/Properties/Resources.Designer.cs

Lines changed: 252 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)