1
1
mirror of https://github.com/dgis/xsddiagram.git synced 2024-09-11 10:36:24 +03:00

version 0.12 (2012-09-19)

- Improve the error message in case the image is too big to be generated.
- Some element (complex type derived from a restriction) could cause an exception. These element are now display but can not be expanded.
This commit is contained in:
Regis Cosnier 2012-09-19 15:14:04 +02:00
parent a77bbf3189
commit 12dfe4d5a1
6 changed files with 19 additions and 5 deletions

View File

@ -179,8 +179,18 @@ namespace XSDDiagram
Graphics g1 = this.panelDiagram.DiagramControl.CreateGraphics();
exporter.Export(outputFilename, g1, new DiagramAlertHandler(SaveAlert));
g1.Dispose();
}
catch (Exception ex)
}
catch (System.ArgumentException ex)
{
MessageBox.Show("You have reach the system limit.\r\nPlease remove some element from the diagram to make it smaller.");
System.Diagnostics.Trace.WriteLine(ex.ToString());
}
catch (System.Runtime.InteropServices.ExternalException ex)
{
MessageBox.Show("You have reach the system limit.\r\nPlease remove some element from the diagram to make it smaller.");
System.Diagnostics.Trace.WriteLine(ex.ToString());
}
catch (Exception ex)
{
MessageBox.Show(ex.Message);
System.Diagnostics.Trace.WriteLine(ex.ToString());

View File

@ -29,5 +29,5 @@ using System.Runtime.InteropServices;
// Build Number
// Revision
//
[assembly: AssemblyVersion("0.11.0.0")]
[assembly: AssemblyFileVersion("0.11.0.0")]
[assembly: AssemblyVersion("0.12.0.0")]
[assembly: AssemblyFileVersion("0.12.0.0")]

View File

@ -98,6 +98,10 @@ TODO LIST:
CHANGES:
version 0.12 (2012-09-19)
- Improve the error message in case the image is too big to be generated.
- Some element (complex type derived from a restriction) could cause an exception. These element are now display but can not be expanded.
version 0.11 (2012-07-22)
- Remove the "Order" attributes in the source file XmlSchema.cs which are imcompatible with mono > 2.6!
- Add the option "-y" to force huge image generation without user prompt.

Binary file not shown.

Binary file not shown.

View File

@ -114,7 +114,7 @@ namespace XSDDiagram.Rendering
String.Format("Do you agree to generate a {0}x{1} image?", bbox.Width, bbox.Height));
if (bypassAlert)
{
Bitmap bitmap = new Bitmap(bbox.Width, bbox.Height);
Bitmap bitmap = new Bitmap(bbox.Width, bbox.Height);
Graphics graphics = Graphics.FromImage(bitmap);
graphics.FillRectangle(Brushes.White, 0, 0, bbox.Width, bbox.Height);
DiagramGdiRenderer.Draw(_diagram, graphics);