/// <summary>
        /// This method is called from the general Query Visualizer.
        /// It reads the query data from the stream, sets the corresponding fields in the
        /// QueryVisualizerFrom and displays it.
        /// </summary>
        /// <param name="windowService">Used to show the visualizer dialog</param>
        /// <param name="rawStream">The query data sent from the provider / visualizer proxy</param>
        public void Display(IDialogVisualizerService windowService,Stream rawStream)
        {
            BinaryFormatter formatter = new BinaryFormatter();
            string expression = (string)formatter.Deserialize(rawStream);

            SqlQueryInfo qi = SqlQueryInfo.deserialize(rawStream);
            SqlQueryText[] infos = qi.Queries;

            string connectionString = (string)formatter.Deserialize(rawStream);

            QueryVisualizerForm form = new QueryVisualizerForm();
            form.SetTexts(expression, infos, connectionString);
            windowService.ShowDialog(form);
        }
        /// <summary>
        /// This method is called from the general Query Visualizer.
        /// It reads the query data from the stream, sets the corresponding fields in the
        /// QueryVisualizerFrom and displays it.
        /// </summary>
        /// <param name="windowService">Used to show the visualizer dialog</param>
        /// <param name="rawStream">The query data sent from the provider / visualizer proxy</param>
        public void Display(IDialogVisualizerService windowService, Stream rawStream)
        {
            BinaryFormatter formatter  = new BinaryFormatter();
            string          expression = (string)formatter.Deserialize(rawStream);

            SqlQueryInfo qi = SqlQueryInfo.deserialize(rawStream);

            SqlQueryText[] infos = qi.Queries;

            string connectionString = (string)formatter.Deserialize(rawStream);

            QueryVisualizerForm form = new QueryVisualizerForm();

            form.SetTexts(expression, infos, connectionString);
            windowService.ShowDialog(form);
        }