Permalink
Browse files

Added single instance behaviour to the application AND some more litt…

…le changes
  • Loading branch information...
mrkskwsnck committed Aug 1, 2010
1 parent 65af1a2 commit d1730fd42a51fc1234a1a2b07ae46cb6fc54b099
Showing with 28 additions and 11 deletions.
  1. +16 −4 Program.cs
  2. +2 −2 Properties/AssemblyInfo.cs
  3. +5 −4 ReadMe.htm
  4. +5 −1 TODO.txt
View
@@ -1,5 +1,6 @@
using System;
using System.Windows.Forms;
using System.Threading;
namespace Wlipper
{
@@ -11,10 +12,21 @@ static class Program
[STAThread]
static void Main()
{
Application.EnableVisualStyles();
Application.SetCompatibleTextRenderingDefault(false);
new WlipperForm();
Application.Run();
// Single instance only allowed
bool firstInstance = false;
Mutex mutex = new Mutex(false, Application.ProductName, out firstInstance);
if (firstInstance)
{
Application.EnableVisualStyles();
Application.SetCompatibleTextRenderingDefault(false);
new WlipperForm();
Application.Run();
}
else
{
Application.Exit();
}
}
}
}
@@ -32,5 +32,5 @@
// Sie können alle Werte angeben oder die standardmäßigen Build- und Revisionsnummern
// übernehmen, indem Sie "*" eingeben:
// [assembly: AssemblyVersion("1.0.*")]
[assembly: AssemblyVersion("2.3.4.4")]
[assembly: AssemblyFileVersion("2.3.4.4")]
[assembly: AssemblyVersion("2.4.6.5")]
[assembly: AssemblyFileVersion("2.4.6.5")]
View
@@ -1,4 +1,4 @@
<?xml version="1.0" encoding="utf-8" ?>
<?xml version="1.0" encoding="utf-8" ?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
@@ -33,7 +33,7 @@ <h2>
Version
</h2>
<p>
2.4.5.5
2.4.6.5
</p>
<h2>
Description
@@ -123,9 +123,10 @@ <h2>
<!-- Major.Minor.Bugfix.Revision -->
<ul>
<li>
<b>2.4.5.5</b>
<b>2.4.6.5</b>
<ul>
<li>Added left mouse button click on the notify icon for the context menu</li>
<li>Added left mouse button click on the notify icon for the context menu.</li>
<li>Added single instance behaviour to the application.</li>
<li>Changed some captions and labels in the GUI.</li>
</ul>
</li>
View
@@ -1,6 +1,10 @@
When updating the version number, remember:
2x AssemblyInfo.cs
2x ReadMe.htm
---
- Try WM_DRAWCLIPBOARD or a different event message for being informed about clipboard changes in the future.
- Old certificate expired
- Turn into a single instance only application
- Add notification about updates
- Fix unlimited adding of new entries

0 comments on commit d1730fd

Please sign in to comment.