aboutsummaryrefslogtreecommitdiffstats
path: root/Software/Visual_Studio/PPC/Tango.PPC.UI/ViewModels/MachineUpdateViewVM.cs
diff options
context:
space:
mode:
Diffstat (limited to 'Software/Visual_Studio/PPC/Tango.PPC.UI/ViewModels/MachineUpdateViewVM.cs')
-rw-r--r--Software/Visual_Studio/PPC/Tango.PPC.UI/ViewModels/MachineUpdateViewVM.cs32
1 files changed, 16 insertions, 16 deletions
diff --git a/Software/Visual_Studio/PPC/Tango.PPC.UI/ViewModels/MachineUpdateViewVM.cs b/Software/Visual_Studio/PPC/Tango.PPC.UI/ViewModels/MachineUpdateViewVM.cs
index 9a8c79cd9..965584767 100644
--- a/Software/Visual_Studio/PPC/Tango.PPC.UI/ViewModels/MachineUpdateViewVM.cs
+++ b/Software/Visual_Studio/PPC/Tango.PPC.UI/ViewModels/MachineUpdateViewVM.cs
@@ -570,10 +570,13 @@ namespace Tango.PPC.UI.ViewModels
{
await receiver.SendGenericResponse(new StartRemoteApplicationUpgradeResponse()
{
- Message = MachineUpdateManager.Status.Message,
- IsIndeterminate = MachineUpdateManager.Status.IsIntermediate,
- Maximum = MachineUpdateManager.Status.Total,
- Progress = MachineUpdateManager.Status.Progress
+ Progress = new TangoProgress<double>()
+ {
+ Message = MachineUpdateManager.Status.Message,
+ IsIndeterminate = MachineUpdateManager.Status.IsIntermediate,
+ Maximum = MachineUpdateManager.Status.Total,
+ Value = MachineUpdateManager.Status.Progress
+ },
}, token, new TransportResponseConfig() { Priority = QueuePriority.Low });
}
catch (Exception ex)
@@ -617,10 +620,7 @@ namespace Tango.PPC.UI.ViewModels
await receiver.SendGenericResponse(new StartRemoteApplicationUpgradeResponse()
{
- IsIndeterminate = false,
- Maximum = 100,
- Progress = 100,
- Message = "Completed"
+ Progress = new TangoProgress<double>("Completed", false, 100, 100),
}, token, new TransportResponseConfig()
{
Completed = true
@@ -669,10 +669,13 @@ namespace Tango.PPC.UI.ViewModels
{
await receiver.SendGenericResponse(new StartRemoteFirmwareUpgradeResponse()
{
- Message = MachineUpdateManager.Status.Message,
- IsIndeterminate = MachineUpdateManager.Status.IsIntermediate,
- Maximum = MachineUpdateManager.Status.Total,
- Progress = MachineUpdateManager.Status.Progress
+ Progress = new TangoProgress<double>()
+ {
+ Message = MachineUpdateManager.Status.Message,
+ IsIndeterminate = MachineUpdateManager.Status.IsIntermediate,
+ Maximum = MachineUpdateManager.Status.Total,
+ Value = MachineUpdateManager.Status.Progress
+ }
}, token, new TransportResponseConfig() { Priority = QueuePriority.Low });
}
catch (Exception ex)
@@ -720,10 +723,7 @@ namespace Tango.PPC.UI.ViewModels
await receiver.SendGenericResponse(new StartRemoteFirmwareUpgradeResponse()
{
- IsIndeterminate = false,
- Maximum = 100,
- Progress = 100,
- Message = "Completed"
+ Progress = new TangoProgress<double>("Completed", false, 100, 100),
}, token, new TransportResponseConfig()
{
Completed = true