예제 #1
0
        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);
        }
예제 #2
0
		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;
		}