Skip to content
Snippets Groups Projects
Commit ff75fc1b authored by Niko Ehrenfeuchter's avatar Niko Ehrenfeuchter :keyboard:
Browse files

Reduce number of local variables.

Refers to #2
parent d28909bd
No related branches found
No related tags found
No related merge requests found
...@@ -77,8 +77,6 @@ namespace ATxTray ...@@ -77,8 +77,6 @@ namespace ATxTray
#endregion #endregion
var configFile = Path.Combine(baseDir, "configuration.xml");
_statusFile = Path.Combine(baseDir, "status.xml"); _statusFile = Path.Combine(baseDir, "status.xml");
Log.Info("-----------------------"); Log.Info("-----------------------");
...@@ -86,7 +84,6 @@ namespace ATxTray ...@@ -86,7 +84,6 @@ namespace ATxTray
Log.Info("build: [{0}]", Properties.Resources.BuildDate.Trim()); Log.Info("build: [{0}]", Properties.Resources.BuildDate.Trim());
Log.Info("commit: [{0}]", Properties.Resources.BuildCommit.Trim()); Log.Info("commit: [{0}]", Properties.Resources.BuildCommit.Trim());
Log.Info("-----------------------"); Log.Info("-----------------------");
Log.Debug(" - config file: [{0}]", configFile);
Log.Debug(" - status file: [{0}]", _statusFile); Log.Debug(" - status file: [{0}]", _statusFile);
_notifyIcon.Icon = _tiStopped; _notifyIcon.Icon = _tiStopped;
...@@ -98,9 +95,8 @@ namespace ATxTray ...@@ -98,9 +95,8 @@ namespace ATxTray
Log.Trace("Trying to read service config and status files..."); Log.Trace("Trying to read service config and status files...");
try { try {
_config = ServiceConfig.Deserialize(configFile); _config = ServiceConfig.Deserialize(Path.Combine(baseDir, "configuration.xml"));
ReadStatus(); ReadStatus();
Log.Trace("Completed reading service config and status files.");
SetupContextMenu(); SetupContextMenu();
} }
catch (Exception ex) { catch (Exception ex) {
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment