diff options
| author | Shlomo Hecht <shlomo@twine-s.com> | 2018-07-18 08:03:17 +0300 |
|---|---|---|
| committer | Shlomo Hecht <shlomo@twine-s.com> | 2018-07-18 08:03:17 +0300 |
| commit | 4b0ca04d68b04507cd0947444936509bda3cb8c8 (patch) | |
| tree | ae9c5d19aa05bf20b1682dbc1ac3441fa2721c67 /Software/Visual_Studio/MachineStudio/Modules/Tango.MachineStudio.Developer/Views/MachineJobSelectionView.xaml.cs | |
| parent | e96d9f083aa58b24d2e64cbbec47e638d0ce84a0 (diff) | |
| parent | 97150bf5a7f5844d9da47523e3136ce87c305ba0 (diff) | |
| download | Tango-4b0ca04d68b04507cd0947444936509bda3cb8c8.tar.gz Tango-4b0ca04d68b04507cd0947444936509bda3cb8c8.zip | |
merge
Diffstat (limited to 'Software/Visual_Studio/MachineStudio/Modules/Tango.MachineStudio.Developer/Views/MachineJobSelectionView.xaml.cs')
| -rw-r--r-- | Software/Visual_Studio/MachineStudio/Modules/Tango.MachineStudio.Developer/Views/MachineJobSelectionView.xaml.cs | 22 |
1 files changed, 22 insertions, 0 deletions
diff --git a/Software/Visual_Studio/MachineStudio/Modules/Tango.MachineStudio.Developer/Views/MachineJobSelectionView.xaml.cs b/Software/Visual_Studio/MachineStudio/Modules/Tango.MachineStudio.Developer/Views/MachineJobSelectionView.xaml.cs index 52786a59f..d21342d01 100644 --- a/Software/Visual_Studio/MachineStudio/Modules/Tango.MachineStudio.Developer/Views/MachineJobSelectionView.xaml.cs +++ b/Software/Visual_Studio/MachineStudio/Modules/Tango.MachineStudio.Developer/Views/MachineJobSelectionView.xaml.cs @@ -12,6 +12,8 @@ using System.Windows.Media; using System.Windows.Media.Imaging; using System.Windows.Navigation; using System.Windows.Shapes; +using Tango.BL.Entities; +using Tango.MachineStudio.Developer.ViewModels; namespace Tango.MachineStudio.Developer.Views { @@ -20,9 +22,29 @@ namespace Tango.MachineStudio.Developer.Views /// </summary> public partial class MachineJobSelectionView : UserControl { + private MainViewVM _vm; + public MachineJobSelectionView() { InitializeComponent(); + + this.Loaded += (_, __) => + { + _vm = DataContext as MainViewVM; + }; + } + + private void MultiSelectDataGrid_MouseDoubleClick(object sender, MouseButtonEventArgs e) + { + DataGrid row = sender as DataGrid; + + + + + if (row != null && row.SelectedItem is Job) + { + _vm.LoadJobCommand.Execute(null); + } } } } |
