private DataGridResultViewer CreateResultViewer(StatementExecutionResult statementResult, ResultInfo resultInfo) { var refreshInterval = DocumentPage.WorkDocument.RefreshInterval; if (refreshInterval == TimeSpan.Zero) { refreshInterval = DefaultRefreshInterval; } var resultViewer = new DataGridResultViewer(this, statementResult, resultInfo) { AutoRefreshInterval = refreshInterval }; resultViewer.TabItem.AddHandler(Selector.SelectedEvent, (RoutedEventHandler)ResultTabSelectedHandler); return(resultViewer); }
private DataGridResultViewer CreateResultViewer(StatementExecutionResult statementResult, ResultInfo resultInfo) { var refreshInterval = DocumentPage.WorkDocument.RefreshInterval; if (refreshInterval == TimeSpan.Zero) { refreshInterval = DefaultRefreshInterval; } var resultViewer = new DataGridResultViewer(this, statementResult, resultInfo) { AutoRefreshInterval = refreshInterval }; resultViewer.TabItem.AddHandler(Selector.SelectedEvent, (RoutedEventHandler)ResultTabSelectedHandler); return resultViewer; }