diff --git a/MRUManager.cs b/MRUManager.cs
index 375cc35..26c66ab 100644
--- a/MRUManager.cs
+++ b/MRUManager.cs
@@ -18,8 +18,7 @@ namespace XSDDiagram
private EventDelegate onRecentFileClick;
private EventDelegate onClearRecentFilesClick;
-
- public MRUManager(ToolStripMenuItem parentMenuItem, string nameOfProgram, EventDelegate onRecentFileClick, EventDelegate onClearRecentFilesClick = null)
+ public MRUManager(ToolStripMenuItem parentMenuItem, string nameOfProgram, EventDelegate onRecentFileClick, EventDelegate onClearRecentFilesClick)
{
if (parentMenuItem == null || onRecentFileClick == null ||
nameOfProgram == null || nameOfProgram.Length == 0 || nameOfProgram.Contains("\\"))
diff --git a/MainForm.cs b/MainForm.cs
index 46c12ad..ad33432 100644
--- a/MainForm.cs
+++ b/MainForm.cs
@@ -555,7 +555,12 @@ namespace XSDDiagram
}
}
- private void SelectDiagramElement(DiagramItem element, bool scrollToElement = false)
+ private void SelectDiagramElement(DiagramItem element)
+ {
+ SelectDiagramElement(element, false);
+ }
+
+ private void SelectDiagramElement(DiagramItem element, bool scrollToElement)
{
this.textBoxElementPath.Text = "";
@@ -1768,7 +1773,12 @@ namespace XSDDiagram
}
}
- private void ExpandCollapseElement(DiagramItem element, bool scrollToElement = false)
+ private void ExpandCollapseElement(DiagramItem element)
+ {
+ ExpandCollapseElement(element, false);
+ }
+
+ private void ExpandCollapseElement(DiagramItem element, bool scrollToElement)
{
if (element != null && element.HasChildElements)
{
diff --git a/ReadMe.txt b/ReadMe.txt
index a429e46..ad958c7 100644
--- a/ReadMe.txt
+++ b/ReadMe.txt
@@ -14,10 +14,10 @@ FEATURES:
- Show and display the text/HTML documentation of element and attribute when available
- Walk the displayed tree with the keyboard
- Print the diagram
-- Export the diagram to SVG, PNG, JPG and EMF (EMF only with Windows)
+- Export the diagram to TXT, SVG, PNG, JPG and EMF (EMF only with Windows)
- Zoom the diagram with the mouse wheel while holding the control key
- XML validation based on the loaded XSD file
-- Registration in the Windows Explorer contextual menu
+- Registration in the Windows Explorer contextual menu (for Windows administrator only)
- Drag'n drop a xsd file or url on the main window header
- Command line image generation
diff --git a/XSDDiagram.exe b/XSDDiagram.exe
index fef442c..87415d5 100644
Binary files a/XSDDiagram.exe and b/XSDDiagram.exe differ
diff --git a/XSDDiagram2008.csproj b/XSDDiagram2008.csproj
index b800239..4b009fb 100644
--- a/XSDDiagram2008.csproj
+++ b/XSDDiagram2008.csproj
@@ -125,6 +125,7 @@
MainForm.cs
+
Form
@@ -269,4 +270,4 @@
-
+
\ No newline at end of file
diff --git a/XSDDiagramConsole.exe b/XSDDiagramConsole.exe
index 0113b17..3182031 100644
Binary files a/XSDDiagramConsole.exe and b/XSDDiagramConsole.exe differ
diff --git a/XSDDiagrams/Rendering/DiagramSvgRenderer.cs b/XSDDiagrams/Rendering/DiagramSvgRenderer.cs
index ecf48d1..27a1496 100644
--- a/XSDDiagrams/Rendering/DiagramSvgRenderer.cs
+++ b/XSDDiagrams/Rendering/DiagramSvgRenderer.cs
@@ -31,16 +31,28 @@ namespace XSDDiagram.Rendering
#region Constructors and Destructor
- public DiagramSvgRenderer(TextWriter writer, Graphics referenceGraphics = null)
- {
- if (writer == null)
- {
- throw new ArgumentNullException("writer", "The writer object is required.");
- }
+ public DiagramSvgRenderer(TextWriter writer)
+ {
- _writer = writer;
- _graphics = referenceGraphics;
- }
+ if (writer == null)
+ {
+ throw new ArgumentNullException("writer", "The writer object is required.");
+ }
+
+ _writer = writer;
+ _graphics = null;
+ }
+
+ public DiagramSvgRenderer(TextWriter writer, Graphics referenceGraphics)
+ {
+ if (writer == null)
+ {
+ throw new ArgumentNullException("writer", "The writer object is required.");
+ }
+
+ _writer = writer;
+ _graphics = referenceGraphics;
+ }
#endregion