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
2d9f5616
Commit
2d9f5616
authored
7 years ago
by
Niko Ehrenfeuchter
Browse files
Options
Downloads
Patches
Plain Diff
Read in status file during startup, make method static.
Refers to
#2
parent
177416b1
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
+2
-1
2 additions, 1 deletion
ATXTray/AutoTxTray.cs
with
2 additions
and
1 deletion
ATXTray/AutoTxTray.cs
+
2
−
1
View file @
2d9f5616
...
...
@@ -34,6 +34,7 @@ namespace ATXTray
_notifyIcon
.
Icon
=
new
Icon
(
"AutoTx.ico"
);
_config
=
ServiceConfig
.
Deserialize
(
ConfigFile
);
ReadStatus
();
_miExit
.
Text
=
@"Exit"
;
_miExit
.
Click
+=
MiExitClick
;
...
...
@@ -113,7 +114,7 @@ namespace ATXTray
/// <summary>
/// Read (or re-read) the service status file if it has changed since last time.
/// </summary>
private
void
ReadStatus
()
{
private
static
void
ReadStatus
()
{
var
age
=
new
FileInfo
(
StatusFile
).
LastWriteTime
;
if
(
age
==
_statusAge
)
return
;
...
...
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