Skip to content

Commit 9568ced

Browse files
committed
Add horse for additional feature
1 parent 05ee3ef commit 9568ced

File tree

3 files changed

+350
-1
lines changed

3 files changed

+350
-1
lines changed

RunCat/Program.cs

Lines changed: 14 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -84,6 +84,10 @@ public RunCatApplicationContext()
8484
new ToolStripMenuItem("Parrot", null, SetRunner)
8585
{
8686
Checked = runner.Equals("parrot")
87+
},
88+
new ToolStripMenuItem("Horse", null, SetRunner)
89+
{
90+
Checked = runner.Equals("horse")
8791
}
8892
});
8993

@@ -170,7 +174,16 @@ private void SetIcons()
170174
{
171175
string prefix = 0 < manualTheme.Length ? manualTheme : systemTheme;
172176
ResourceManager rm = Resources.ResourceManager;
173-
int capacity = runner.Equals("cat") ? 5 : 10;
177+
// default runner is cat
178+
int capacity = 5;
179+
if (runner.Equals("parrot"))
180+
{
181+
capacity = 10;
182+
}
183+
else if (runner.Equals("horse"))
184+
{
185+
capacity = 14;
186+
}
174187
List<Icon> list = new List<Icon>(capacity);
175188
for (int i = 0; i < capacity; i++)
176189
{

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)