mirror of
https://github.com/dgis/xsddiagram.git
synced 2024-08-17 06:20:23 +03:00
10 years and a new version 1.0
This commit is contained in:
parent
97f914ff80
commit
eec1003f76
@ -18,8 +18,7 @@ namespace XSDDiagram
|
|||||||
private EventDelegate onRecentFileClick;
|
private EventDelegate onRecentFileClick;
|
||||||
private EventDelegate onClearRecentFilesClick;
|
private EventDelegate onClearRecentFilesClick;
|
||||||
|
|
||||||
|
public MRUManager(ToolStripMenuItem parentMenuItem, string nameOfProgram, EventDelegate onRecentFileClick, EventDelegate onClearRecentFilesClick)
|
||||||
public MRUManager(ToolStripMenuItem parentMenuItem, string nameOfProgram, EventDelegate onRecentFileClick, EventDelegate onClearRecentFilesClick = null)
|
|
||||||
{
|
{
|
||||||
if (parentMenuItem == null || onRecentFileClick == null ||
|
if (parentMenuItem == null || onRecentFileClick == null ||
|
||||||
nameOfProgram == null || nameOfProgram.Length == 0 || nameOfProgram.Contains("\\"))
|
nameOfProgram == null || nameOfProgram.Length == 0 || nameOfProgram.Contains("\\"))
|
||||||
|
14
MainForm.cs
14
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 = "";
|
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)
|
if (element != null && element.HasChildElements)
|
||||||
{
|
{
|
||||||
|
@ -14,10 +14,10 @@ FEATURES:
|
|||||||
- Show and display the text/HTML documentation of element and attribute when available
|
- Show and display the text/HTML documentation of element and attribute when available
|
||||||
- Walk the displayed tree with the keyboard
|
- Walk the displayed tree with the keyboard
|
||||||
- Print the diagram
|
- 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
|
- Zoom the diagram with the mouse wheel while holding the control key
|
||||||
- XML validation based on the loaded XSD file
|
- 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
|
- Drag'n drop a xsd file or url on the main window header
|
||||||
- Command line image generation
|
- Command line image generation
|
||||||
|
|
||||||
|
BIN
XSDDiagram.exe
BIN
XSDDiagram.exe
Binary file not shown.
@ -125,6 +125,7 @@
|
|||||||
<Compile Include="MainForm.Designer.cs">
|
<Compile Include="MainForm.Designer.cs">
|
||||||
<DependentUpon>MainForm.cs</DependentUpon>
|
<DependentUpon>MainForm.cs</DependentUpon>
|
||||||
</Compile>
|
</Compile>
|
||||||
|
<Compile Include="MRUManager.cs" />
|
||||||
<Compile Include="OpenURLForm.cs">
|
<Compile Include="OpenURLForm.cs">
|
||||||
<SubType>Form</SubType>
|
<SubType>Form</SubType>
|
||||||
</Compile>
|
</Compile>
|
||||||
@ -269,4 +270,4 @@
|
|||||||
<PreBuildEvent>
|
<PreBuildEvent>
|
||||||
</PreBuildEvent>
|
</PreBuildEvent>
|
||||||
</PropertyGroup>
|
</PropertyGroup>
|
||||||
</Project>
|
</Project>
|
Binary file not shown.
@ -31,16 +31,28 @@ namespace XSDDiagram.Rendering
|
|||||||
|
|
||||||
#region Constructors and Destructor
|
#region Constructors and Destructor
|
||||||
|
|
||||||
public DiagramSvgRenderer(TextWriter writer, Graphics referenceGraphics = null)
|
public DiagramSvgRenderer(TextWriter writer)
|
||||||
{
|
{
|
||||||
if (writer == null)
|
|
||||||
{
|
|
||||||
throw new ArgumentNullException("writer", "The writer object is required.");
|
|
||||||
}
|
|
||||||
|
|
||||||
_writer = writer;
|
if (writer == null)
|
||||||
_graphics = referenceGraphics;
|
{
|
||||||
}
|
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
|
#endregion
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user