aboutsummaryrefslogtreecommitdiffstats
path: root/Software/Visual_Studio/PPC/Tango.PPC.UI/ViewModels/MachineSetupViewVM.cs
diff options
context:
space:
mode:
authorRoy Ben-Shabat <Roy@Twine-s.com>2018-08-28 18:33:42 +0300
committerRoy Ben-Shabat <Roy@Twine-s.com>2018-08-28 18:33:42 +0300
commitfe589d0e841bf3a6d7c3206a7e48c8e7ae9a91a8 (patch)
tree5ff891ca5d8fcb9e7e3afbb8f350f60c8fbf5e3b /Software/Visual_Studio/PPC/Tango.PPC.UI/ViewModels/MachineSetupViewVM.cs
parentf3fc87dd10b3d55591a84ecbfb0612769f0c09b9 (diff)
downloadTango-fe589d0e841bf3a6d7c3206a7e48c8e7ae9a91a8.tar.gz
Tango-fe589d0e841bf3a6d7c3206a7e48c8e7ae9a91a8.zip
Some work.
Diffstat (limited to 'Software/Visual_Studio/PPC/Tango.PPC.UI/ViewModels/MachineSetupViewVM.cs')
-rw-r--r--Software/Visual_Studio/PPC/Tango.PPC.UI/ViewModels/MachineSetupViewVM.cs18
1 files changed, 9 insertions, 9 deletions
diff --git a/Software/Visual_Studio/PPC/Tango.PPC.UI/ViewModels/MachineSetupViewVM.cs b/Software/Visual_Studio/PPC/Tango.PPC.UI/ViewModels/MachineSetupViewVM.cs
index 57c2200c6..ef033626a 100644
--- a/Software/Visual_Studio/PPC/Tango.PPC.UI/ViewModels/MachineSetupViewVM.cs
+++ b/Software/Visual_Studio/PPC/Tango.PPC.UI/ViewModels/MachineSetupViewVM.cs
@@ -171,15 +171,6 @@ namespace Tango.PPC.UI.ViewModels
SkipEmbeddedTestCommand = new RelayCommand(SkipEmbeddedTest);
InstallCommand = new RelayCommand(Install);
RestartCommand = new RelayCommand(() => { NavigateTo(MachineSetupView.WelcomeView); });
-
- if (!LogManager.Categories.Contains(LogCategory.Debug))
- {
- LogManager.Categories.Add(LogCategory.Debug);
- }
-
- var logger = new SimpleStringLogger();
- LogManager.RegisterLogger(logger);
- logger.LogReceived += Logger_LogReceived;
}
#endregion
@@ -193,6 +184,15 @@ namespace Tango.PPC.UI.ViewModels
/// <param name="e">The <see cref="EventArgs"/> instance containing the event data.</param>
private void ApplicationManager_SetupRequired(object sender, EventArgs e)
{
+ if (!LogManager.Categories.Contains(LogCategory.Debug))
+ {
+ LogManager.Categories.Add(LogCategory.Debug);
+ }
+
+ var logger = new SimpleStringLogger();
+ LogManager.RegisterLogger(logger);
+ logger.LogReceived += Logger_LogReceived;
+
LogManager.Log("SetupRequired event received. Navigating to MachineSetupView...");
NavigationManager.NavigateTo(NavigationView.MachineSetupView);
}