private void ButtonOpen_Click(object sender, RoutedEventArgs e) { var item = sender as FrameworkElement; var dc = item.DataContext; InstrumentControl.ShowInstrumentInfo(dc as IInstrument); }
private void RadGridView_MouseDoubleClick(object sender, MouseButtonEventArgs e) { var dc = DataContext as AnalyseProjectViewModel; if (dc.CurrentResult != null && dc.CurrentResult.TargetObject != null) { InstrumentControl.ShowInstrumentInfo(dc.CurrentResult.TargetObject, () => { return(dc.CurrentDataSource); }, dc.AnalyseStartTime, dc.AnalyseEndTime); } }