1234567891011121314151617181920212223242526272829 |
- using Vinno.vCloud.ReportTemplate.ViewModel.ViewModels;
- using vStation.Presentation.Exams;
- using vStation.Utilities;
- using vStation.ViewModel.Exams;
- namespace vStation.Presentation.ReportTemplate
- {
- /// <summary>
- /// Interaction logic for SingleSelectedView.xaml
- /// </summary>
- public partial class SingleSelectedView
- {
- public SingleSelectedView()
- {
- InitializeComponent();
- }
- private void SelectElement_PreviewMouseLeftButtonDown(object sender, System.Windows.Input.MouseButtonEventArgs e)
- {
- var recordCommentWindow = UiTreeHelper.GetParentObject<RecordComments>(this);
- if (recordCommentWindow != null)
- {
- if (recordCommentWindow.DataContext is RecordCommentViewModel recordCommentViewModel && DataContext is SingleSelectedViewModel singleSelectedViewModel)
- {
- recordCommentViewModel.CurrentElement = singleSelectedViewModel;
- }
- }
- }
- }
- }
|