コード例 #1
0
        private void ButtonOpen_Click(object sender, RoutedEventArgs e)
        {
            var item = sender as FrameworkElement;
            var dc   = item.DataContext;

            InstrumentControl.ShowInstrumentInfo(dc as IInstrument);
        }
コード例 #2
0
        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);
            }
        }