Ejemplo n.º 1
0
        /// <summary>
        /// Constructor for Xml Visualizer v.2.
        /// </summary>
        /// <param name="debugMode">Indicates if the visualizer should be used standalone or in debug mode.</param>
        private Visualizer(bool debugMode)
        {
            replaceObject = true;
            visualizerForm = new VisualizerForm();

            if (debugMode)
            {
                visualizerForm.SetDebugMode();
            }
        }
Ejemplo n.º 2
0
        /// <summary>
        /// Constructor for Xml Visualizer v.2.
        /// </summary>
        /// <param name="debugMode">Indicates if the visualizer should be used standalone or in debug mode.</param>
        private Visualizer(bool debugMode)
        {
            replaceObject  = true;
            visualizerForm = new VisualizerForm();

            if (debugMode)
            {
                visualizerForm.SetDebugMode();
            }
        }
Ejemplo n.º 3
0
        /// <summary>
        /// Disposes Xml Visualizer v.2.
        /// </summary>
        public void Dispose()
        {
            string modifiedXml = visualizerForm.GetModifiedXml();

            if (visualizerForm != null)
            {
                if (!visualizerForm.IsDisposed)
                {
                    visualizerForm.Dispose();
                }

                visualizerForm = null;
            }

            if (OnDisposeEvent != null)
            {
                OnDisposeEvent(modifiedXml);
            }

            if (OnDisposeEventStatic != null)
            {
                OnDisposeEventStatic(modifiedXml);
            }
        }
Ejemplo n.º 4
0
 /// <summary>
 /// Constructor for Xml Visualizer v.2.
 /// </summary>
 public Visualizer()
 {
     replaceObject = true;
     visualizerForm = new VisualizerForm();
 }
Ejemplo n.º 5
0
        /// <summary>
        /// Disposes Xml Visualizer v.2.
        /// </summary>
        public void Dispose()
        {
            string modifiedXml = visualizerForm.GetModifiedXml();

            if (visualizerForm != null)
            {
                if (!visualizerForm.IsDisposed)
                {
                    visualizerForm.Dispose();
                }

                visualizerForm = null;
            }

            if (OnDisposeEvent != null)
            {
                OnDisposeEvent(modifiedXml);
            }

            if (OnDisposeEventStatic != null)
            {
                OnDisposeEventStatic(modifiedXml);
            }
        }
Ejemplo n.º 6
0
 /// <summary>
 /// Constructor for Xml Visualizer v.2.
 /// </summary>
 public Visualizer()
 {
     replaceObject  = true;
     visualizerForm = new VisualizerForm();
 }