Skip to content

Commit

Permalink
- preview html / svg files
Browse files Browse the repository at this point in the history
  • Loading branch information
fbergmann committed Dec 9, 2014
1 parent a0c98ed commit ebc8d01
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 3 deletions.
6 changes: 6 additions & 0 deletions FormsCombineArchive/MainForm.cs
Original file line number Diff line number Diff line change
Expand Up @@ -226,6 +226,8 @@ private void ShowImage(string filename)
textPanel.Visible = false;
pictureBox1.ImageLocation = filename;
}


private void DisplayUrl(string location)
{
previewHandlerHost1.Visible = false;
Expand Down Expand Up @@ -285,6 +287,10 @@ private void OnSelectionChanged(object sender, EventArgs e)
pictureBox1.Visible = false;
previewHandlerHost1.Visible = true;
}
else if (entry.Format == "text/html" || entry.Format == "text/xhtml" || entry.Format == "image/svg+xml")
{
DisplayUrl(filename);
}
else if (entry.Format.Contains("image/"))
{
ShowImage(filename);
Expand Down
4 changes: 2 additions & 2 deletions FormsCombineArchive/Properties/AssemblyInfo.cs
Original file line number Diff line number Diff line change
Expand Up @@ -32,5 +32,5 @@
// You can specify all the values or you can default the Build and Revision Numbers
// by using the '*' as shown below:
// [assembly: AssemblyVersion("1.0.*")]
[assembly: AssemblyVersion("1.9.0.0")]
[assembly: AssemblyFileVersion("1.9.0.0")]
[assembly: AssemblyVersion("1.10.0.0")]
[assembly: AssemblyFileVersion("1.10.0.0")]
2 changes: 1 addition & 1 deletion NSIS_CombineArchive.nsi
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

; HM NIS Edit Wizard helper defines
!define PRODUCT_NAME "COMBINE archive"
!define PRODUCT_VERSION "1.9"
!define PRODUCT_VERSION "1.10"
!define PRODUCT_PUBLISHER "Frank T. Bergmann"
!define PRODUCT_WEB_SITE "http://fbergmann.github.io/CombineArchive/"
!define PRODUCT_DIR_REGKEY "Software\Microsoft\Windows\CurrentVersion\App Paths\FormsCombineArchive.exe"
Expand Down

0 comments on commit ebc8d01

Please sign in to comment.