aboutsummaryrefslogtreecommitdiffstats
path: root/Software/Visual_Studio/MachineStudio/Modules/Tango.MachineStudio.Logging/ViewModels/EmbeddedLogsViewVM.cs
diff options
context:
space:
mode:
authorRoy Ben-Shabat <Roy@Twine-s.com>2018-07-03 12:45:51 +0300
committerRoy Ben-Shabat <Roy@Twine-s.com>2018-07-03 12:45:51 +0300
commitdff820daf6850f2c1403d6601d2091b8c3bfc730 (patch)
tree20581f5ab77222791c7944a62aaab3c96bce94b2 /Software/Visual_Studio/MachineStudio/Modules/Tango.MachineStudio.Logging/ViewModels/EmbeddedLogsViewVM.cs
parentc9d3c1a7408f6f7a4814c1a8f5cf58a2d13e1694 (diff)
downloadTango-dff820daf6850f2c1403d6601d2091b8c3bfc730.tar.gz
Tango-dff820daf6850f2c1403d6601d2091b8c3bfc730.zip
Implemented application & embedded logs details views.
Diffstat (limited to 'Software/Visual_Studio/MachineStudio/Modules/Tango.MachineStudio.Logging/ViewModels/EmbeddedLogsViewVM.cs')
-rw-r--r--Software/Visual_Studio/MachineStudio/Modules/Tango.MachineStudio.Logging/ViewModels/EmbeddedLogsViewVM.cs16
1 files changed, 16 insertions, 0 deletions
diff --git a/Software/Visual_Studio/MachineStudio/Modules/Tango.MachineStudio.Logging/ViewModels/EmbeddedLogsViewVM.cs b/Software/Visual_Studio/MachineStudio/Modules/Tango.MachineStudio.Logging/ViewModels/EmbeddedLogsViewVM.cs
index 959d294c7..8cf4edcb3 100644
--- a/Software/Visual_Studio/MachineStudio/Modules/Tango.MachineStudio.Logging/ViewModels/EmbeddedLogsViewVM.cs
+++ b/Software/Visual_Studio/MachineStudio/Modules/Tango.MachineStudio.Logging/ViewModels/EmbeddedLogsViewVM.cs
@@ -11,6 +11,7 @@ using Tango.MachineStudio.Common.Notifications;
using Tango.MachineStudio.Common.StudioApplication;
using Tango.MachineStudio.Logging.Navigation;
using Tango.MachineStudio.Logging.Parsing;
+using Tango.MachineStudio.Logging.Views;
using Tango.SharedUI;
namespace Tango.MachineStudio.Logging.ViewModels
@@ -31,6 +32,13 @@ namespace Tango.MachineStudio.Logging.ViewModels
set { _logs = value; RaisePropertyChangedAuto(); }
}
+ private LogItemBase _selectedLog;
+ public LogItemBase SelectedLog
+ {
+ get { return _selectedLog; }
+ set { _selectedLog = value; RaisePropertyChangedAuto(); OnSelectedLogChanged(); }
+ }
+
private ObservableCollection<DateTime> _dates;
public ObservableCollection<DateTime> Dates
{
@@ -157,5 +165,13 @@ namespace Tango.MachineStudio.Logging.ViewModels
Logs = new ControlledObservableCollection<LogItemBase>(logs);
}
}
+
+ private void OnSelectedLogChanged()
+ {
+ if (SelectedLog != null)
+ {
+ _notification.ShowModalDialog<LogDetailsViewVM, EmbeddedLogDetailsView>(new LogDetailsViewVM(SelectedLog), (x) => { }, () => { });
+ }
+ }
}
}