diff options
| author | Shlomo Hecht <shlomo@twine-s.com> | 2018-08-28 18:48:03 +0300 |
|---|---|---|
| committer | Shlomo Hecht <shlomo@twine-s.com> | 2018-08-28 18:48:03 +0300 |
| commit | 323a408ed2059dbaa86150967544e82433b3d04e (patch) | |
| tree | ec13b2e7fd805017b434701674df6b75b6ea76c3 /Software/Visual_Studio/PPC/Tango.PPC.UI/ViewModels/MachineSetupViewVM.cs | |
| parent | 952e9ccbb94aabd0c3d0857f6d454d90e1afcf91 (diff) | |
| parent | 33a2d098936cad4e7a8ca0c16187023a78fc4e43 (diff) | |
| download | Tango-323a408ed2059dbaa86150967544e82433b3d04e.tar.gz Tango-323a408ed2059dbaa86150967544e82433b3d04e.zip | |
Merge branch 'master' of https://twinetfs.visualstudio.com/Tango/_git/Tango
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.cs | 18 |
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); } |
