aboutsummaryrefslogtreecommitdiffstats
path: root/Software/Visual_Studio/PPC/Tango.PPC.UI/ViewModels/JobsViewVM.cs
diff options
context:
space:
mode:
Diffstat (limited to 'Software/Visual_Studio/PPC/Tango.PPC.UI/ViewModels/JobsViewVM.cs')
-rw-r--r--Software/Visual_Studio/PPC/Tango.PPC.UI/ViewModels/JobsViewVM.cs31
1 files changed, 16 insertions, 15 deletions
diff --git a/Software/Visual_Studio/PPC/Tango.PPC.UI/ViewModels/JobsViewVM.cs b/Software/Visual_Studio/PPC/Tango.PPC.UI/ViewModels/JobsViewVM.cs
index b5e3e18fc..2af15b1ad 100644
--- a/Software/Visual_Studio/PPC/Tango.PPC.UI/ViewModels/JobsViewVM.cs
+++ b/Software/Visual_Studio/PPC/Tango.PPC.UI/ViewModels/JobsViewVM.cs
@@ -51,20 +51,6 @@ namespace Tango.PPC.UI.ViewModels
public RelayCommand<DropEventArgs> OnDragAndDropCommand { get; set; }
- public JobsViewVM(IPPCApplicationManager application, IAuthenticationProvider authentication, INavigationManager navigation, INotificationProvider notification) : base(application, authentication, navigation, notification)
- {
- Jobs = new ObservableCollection<Job>();
-
- JobSelectedCommand = new RelayCommand((x) => JobSelected(x as Job));
- OnDragAndDropCommand = new RelayCommand<DropEventArgs>((e) =>
- {
- Job draggedJob = e.Draggable.DataContext as Job;
- Job droppedJob = e.Droppable.DataContext as Job;
-
- OnDragAndDropJobs(draggedJob, droppedJob);
- });
- }
-
private void OnDragAndDropJobs(Job draggedJob, Job droppedJob)
{
Debug.WriteLine(draggedJob.Name + " Dragged on to " + droppedJob.Name);
@@ -88,9 +74,24 @@ namespace Tango.PPC.UI.ViewModels
JobsCollectionView.Refresh();
}
- private void JobSelected(Job job)
+ private async void JobSelected(Job job)
{
Debug.WriteLine(job.Name);
+ await NotificationProvider.ShowInfo("Job details not yet implemented...");
+ }
+
+ public JobsViewVM()
+ {
+ Jobs = new ObservableCollection<Job>();
+
+ JobSelectedCommand = new RelayCommand((x) => JobSelected(x as Job));
+ OnDragAndDropCommand = new RelayCommand<DropEventArgs>((e) =>
+ {
+ Job draggedJob = e.Draggable.DataContext as Job;
+ Job droppedJob = e.Droppable.DataContext as Job;
+
+ OnDragAndDropJobs(draggedJob, droppedJob);
+ });
}
public override void OnApplicationStarted()