diff options
| author | Roy Ben-Shabat <Roy@Twine-s.com> | 2018-12-09 16:59:07 +0200 |
|---|---|---|
| committer | Roy Ben-Shabat <Roy@Twine-s.com> | 2018-12-09 16:59:07 +0200 |
| commit | f7d320bcc6651d0c85bad73b52b14ba050a40c18 (patch) | |
| tree | 6f446d30c34da651e5cb2bed93caa0edc3a38f24 /Software/Visual_Studio/PPC/Tango.PPC.UI/ViewModels/MachineSetupViewVM.cs | |
| parent | 58c791b68d9058516166cc26fc15563bd56ebeb6 (diff) | |
| download | Tango-f7d320bcc6651d0c85bad73b52b14ba050a40c18.tar.gz Tango-f7d320bcc6651d0c85bad73b52b14ba050a40c18.zip | |
Refactored PPC firmware upgrade.
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 | 7 |
1 files changed, 2 insertions, 5 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 02cc4ba33..16b1c05bc 100644 --- a/Software/Visual_Studio/PPC/Tango.PPC.UI/ViewModels/MachineSetupViewVM.cs +++ b/Software/Visual_Studio/PPC/Tango.PPC.UI/ViewModels/MachineSetupViewVM.cs @@ -138,8 +138,6 @@ namespace Tango.PPC.UI.ViewModels public MachineSetupViewVM(IPPCApplicationManager applicationManager, IMachineSetupManager machineSetupManager) { MachineSetupManager = machineSetupManager; - //MachineSetupManager.ProgressLog += (x, msg) => AppendLog(msg); - MachineSetupManager.ProgressStep += (x, step) => AppendLog(Environment.NewLine + "-----------" + step.ToDescription().ToUpper() + "-----------" + Environment.NewLine); HostAddress = Settings.MachineServiceAddress; SerialNumber = ""; @@ -171,6 +169,7 @@ namespace Tango.PPC.UI.ViewModels } var logger = new SimpleStringLogger(); + logger.Categories.Remove(LogCategory.Debug); LogManager.RegisterLogger(logger); logger.LogReceived += Logger_LogReceived; @@ -275,11 +274,9 @@ namespace Tango.PPC.UI.ViewModels try { _setup_result = await MachineSetupManager.Setup(SerialNumber, HostAddress); - Settings.ApplicationState = ApplicationStates.SemiSetup; - Settings.Save(); State = MachineSetupStates.Completed; LogManager.Log("Machine setup completed."); - CompleteSetup(); + await NavigateTo(MachineSetupView.SetupCompletedView); } catch (Exception ex) { |
