mirror of
https://github.com/dgis/xsddiagram.git
synced 2024-10-05 14:17:40 +03:00
Finalyse the version 0.10
This commit is contained in:
parent
0d98f04524
commit
29b9e8070d
@ -15,7 +15,9 @@
|
||||
// along with this program; if not, write to the Free Software
|
||||
// Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
|
||||
|
||||
using System;
|
||||
using System.Diagnostics;
|
||||
using System.Windows.Forms;
|
||||
using Microsoft.Win32;
|
||||
|
||||
namespace XSDDiagram
|
||||
@ -29,18 +31,25 @@ namespace XSDDiagram
|
||||
string regPath = string.Format(@"{0}\shell\{1}",
|
||||
fileType, shellKeyName);
|
||||
|
||||
// add context menu to the registry
|
||||
using (RegistryKey key =
|
||||
Registry.ClassesRoot.CreateSubKey(regPath))
|
||||
try
|
||||
{
|
||||
key.SetValue(null, menuText);
|
||||
}
|
||||
// add context menu to the registry
|
||||
using (RegistryKey key =
|
||||
Registry.ClassesRoot.CreateSubKey(regPath))
|
||||
{
|
||||
key.SetValue(null, menuText);
|
||||
}
|
||||
|
||||
// add command that is invoked to the registry
|
||||
using (RegistryKey key = Registry.ClassesRoot.CreateSubKey(
|
||||
string.Format(@"{0}\command", regPath)))
|
||||
// add command that is invoked to the registry
|
||||
using (RegistryKey key = Registry.ClassesRoot.CreateSubKey(
|
||||
string.Format(@"{0}\command", regPath)))
|
||||
{
|
||||
key.SetValue(null, menuCommand);
|
||||
}
|
||||
}
|
||||
catch (Exception ex)
|
||||
{
|
||||
key.SetValue(null, menuCommand);
|
||||
MessageBox.Show("Error while registring: " + ex.Message + "\r\nYou may have to run this application as administrator!");
|
||||
}
|
||||
}
|
||||
|
||||
@ -53,8 +62,15 @@ namespace XSDDiagram
|
||||
string regPath = string.Format(@"{0}\shell\{1}",
|
||||
fileType, shellKeyName);
|
||||
|
||||
// remove context menu from the registry
|
||||
Registry.ClassesRoot.DeleteSubKeyTree(regPath);
|
||||
try
|
||||
{
|
||||
// remove context menu from the registry
|
||||
Registry.ClassesRoot.DeleteSubKeyTree(regPath);
|
||||
}
|
||||
catch (Exception ex)
|
||||
{
|
||||
MessageBox.Show("Error while unregistring: " + ex.Message);
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
BIN
ILMerge.exe
Normal file
BIN
ILMerge.exe
Normal file
Binary file not shown.
3
IlMerge.bat
Normal file
3
IlMerge.bat
Normal file
@ -0,0 +1,3 @@
|
||||
ilmerge /target:winexe /out:XSDDiagram.exe bin\Release\XSDDiagram.exe bin\Release\XSDDiagrams.dll
|
||||
copy XSDDiagramConsole\bin\Release\XSDDiagramConsole.exe .
|
||||
pause
|
@ -94,9 +94,11 @@ TODO LIST:
|
||||
CHANGES:
|
||||
|
||||
version 0.10 (2011-12-18)
|
||||
- Refactor within a core library "XSDDiagrams.dll" under the LGPL/MS-PL license.
|
||||
- Add the XSD Diagrams core library, thanks to Paul's refactoring !
|
||||
- Add the XML validation operation using the currently loaded XSD schema in the Tools menu.
|
||||
- When the WebBrowser is not available, use a TextBox instead (For Mono without WebBrowser support).
|
||||
- Mono version 2.10 does not work anymore with XML deserialization :-(
|
||||
|
||||
version 0.9 (2011-05-17)
|
||||
- Allow to expand restriction type (Thanks to Hermann).
|
||||
|
BIN
XSDDiagram.exe
Normal file
BIN
XSDDiagram.exe
Normal file
Binary file not shown.
BIN
XSDDiagramConsole.exe
Normal file
BIN
XSDDiagramConsole.exe
Normal file
Binary file not shown.
@ -1,4 +1,4 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<Project ToolsVersion="3.5" DefaultTargets="Build" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
|
||||
<PropertyGroup>
|
||||
<Configuration Condition=" '$(Configuration)' == '' ">Debug</Configuration>
|
||||
@ -39,6 +39,8 @@
|
||||
<DebugType>full</DebugType>
|
||||
<PlatformTarget>x86</PlatformTarget>
|
||||
<ErrorReport>prompt</ErrorReport>
|
||||
<WarningLevel>4</WarningLevel>
|
||||
<Optimize>false</Optimize>
|
||||
</PropertyGroup>
|
||||
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Release|x86' ">
|
||||
<OutputPath>bin\x86\Release\</OutputPath>
|
||||
@ -47,6 +49,7 @@
|
||||
<DebugType>pdbonly</DebugType>
|
||||
<PlatformTarget>x86</PlatformTarget>
|
||||
<ErrorReport>prompt</ErrorReport>
|
||||
<WarningLevel>4</WarningLevel>
|
||||
</PropertyGroup>
|
||||
<ItemGroup>
|
||||
<Reference Include="System" />
|
||||
|
Loading…
Reference in New Issue
Block a user