From 5caec1e3670f85f548805d3e1d9500d257c04e53 Mon Sep 17 00:00:00 2001 From: Victoria Plitt Date: Wed, 18 Mar 2020 17:25:20 +0200 Subject: Actions log. - Added IsLoadingDifferences property for waiting loading differences. --- .../Tango.MachineStudio.ActionLogs/ViewModels/MainViewVM.cs | 13 +++++++++++-- 1 file changed, 11 insertions(+), 2 deletions(-) (limited to 'Software/Visual_Studio/MachineStudio/Modules/Tango.MachineStudio.ActionLogs/ViewModels') diff --git a/Software/Visual_Studio/MachineStudio/Modules/Tango.MachineStudio.ActionLogs/ViewModels/MainViewVM.cs b/Software/Visual_Studio/MachineStudio/Modules/Tango.MachineStudio.ActionLogs/ViewModels/MainViewVM.cs index 50ec7f7a5..c091f1221 100644 --- a/Software/Visual_Studio/MachineStudio/Modules/Tango.MachineStudio.ActionLogs/ViewModels/MainViewVM.cs +++ b/Software/Visual_Studio/MachineStudio/Modules/Tango.MachineStudio.ActionLogs/ViewModels/MainViewVM.cs @@ -95,6 +95,14 @@ namespace Tango.MachineStudio.ActionLogs.ViewModels set { _isLoading = value; RaisePropertyChangedAuto(); } } + private bool _isLoadingDifferences; + + public bool IsLoadingDifferences + { + get { return _isLoadingDifferences; } + set { _isLoadingDifferences = value; RaisePropertyChangedAuto(); } + } + @@ -109,6 +117,7 @@ namespace Tango.MachineStudio.ActionLogs.ViewModels _notification = notification; IsLoading = false; + IsLoadingDifferences = false; ActionLogs = new ObservableCollection(); SearchCommand = new RelayCommand(async () => await GetActionLogs(), () => IsFree); CopyRelateObjectIDCommand = new RelayCommand(CopyRelateObjectID); @@ -257,7 +266,7 @@ namespace Tango.MachineStudio.ActionLogs.ViewModels /// public async Task InitSelectedActionLogDifference() { - IsLoading = true; + IsLoadingDifferences = true; try { using (var db = ObservablesContext.CreateDefault()) @@ -275,7 +284,7 @@ namespace Tango.MachineStudio.ActionLogs.ViewModels } finally { - IsLoading = false; + IsLoadingDifferences = false; } } } -- cgit v1.3.1