Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
A
auto-tx
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
vamp
auto-tx
Commits
e57943e1
Commit
e57943e1
authored
7 years ago
by
Niko Ehrenfeuchter
Browse files
Options
Downloads
Patches
Plain Diff
Initialize icons on declaration.
Refers to
#2
parent
565275c1
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
ATXTray/AutoTxTray.cs
+5
-10
5 additions, 10 deletions
ATXTray/AutoTxTray.cs
with
5 additions
and
10 deletions
ATXTray/AutoTxTray.cs
+
5
−
10
View file @
e57943e1
...
...
@@ -30,11 +30,11 @@ namespace ATXTray
private
static
long
_txSize
;
private
readonly
NotifyIcon
_notifyIcon
=
new
NotifyIcon
();
private
readonly
Icon
_tiDefault
;
private
readonly
Icon
_tiStopped
;
private
readonly
Icon
_tiSuspended
;
private
readonly
Icon
_tiTx0
;
private
readonly
Icon
_tiTx1
;
private
readonly
Icon
_tiDefault
=
new
Icon
(
"AutoTx.ico"
)
;
private
readonly
Icon
_tiStopped
=
new
Icon
(
"icon-stopped.ico"
)
;
private
readonly
Icon
_tiSuspended
=
new
Icon
(
"icon-suspended.ico"
)
;
private
readonly
Icon
_tiTx0
=
new
Icon
(
"icon-tx-0.ico"
)
;
private
readonly
Icon
_tiTx1
=
new
Icon
(
"icon-tx-1.ico"
)
;
private
readonly
ContextMenuStrip
_cmStrip
=
new
ContextMenuStrip
();
private
readonly
ToolStripMenuItem
_miExit
=
new
ToolStripMenuItem
();
private
readonly
ToolStripMenuItem
_miTitle
=
new
ToolStripMenuItem
();
...
...
@@ -44,11 +44,6 @@ namespace ATXTray
private
readonly
ToolStripMenuItem
_miTxEnqueue
=
new
ToolStripMenuItem
();
public
AutoTxTray
()
{
_tiDefault
=
new
Icon
(
"AutoTx.ico"
);
_tiStopped
=
new
Icon
(
"icon-stopped.ico"
);
_tiSuspended
=
new
Icon
(
"icon-suspended.ico"
);
_tiTx0
=
new
Icon
(
"icon-tx-0.ico"
);
_tiTx1
=
new
Icon
(
"icon-tx-1.ico"
);
_notifyIcon
.
Icon
=
_tiStopped
;
_notifyIcon
.
Visible
=
true
;
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment