Winify – Diff between revs 30 and 60

Subversion Repositories:
Rev:
Only display areas with differencesIgnore whitespace
Rev 30 Rev 60
1 using System; 1 using System;
-   2 using System.IO;
2 using System.Threading; 3 using System.Threading;
3 using System.Windows.Forms; 4 using System.Windows.Forms;
4   5  
5 namespace Winify 6 namespace Winify
6 { 7 {
7 internal class Program 8 internal class Program
8 { 9 {
9 #region Static Fields and Constants 10 #region Static Fields and Constants
10   11  
11 private static readonly Mutex Mutex = new Mutex(true, Constants.AssemblyGuid); 12 private static readonly Mutex Mutex = new Mutex(true, Constants.AssemblyGuid);
12   13  
13 #endregion 14 #endregion
14   15  
15 #region Private Methods 16 #region Private Methods
16   17  
17 /// <summary> 18 /// <summary>
18 /// The main entry point for the application. 19 /// The main entry point for the application.
19 /// </summary> 20 /// </summary>
20 [STAThread] 21 [STAThread]
21 private static void Main() 22 private static void Main()
22 { 23 {
-   24 Directory.SetCurrentDirectory(AppDomain.CurrentDomain.BaseDirectory);
-   25  
23 if (Mutex.WaitOne(TimeSpan.Zero, true)) 26 if (Mutex.WaitOne(TimeSpan.Zero, true))
24 try 27 try
25 { 28 {
26 Application.EnableVisualStyles(); 29 Application.EnableVisualStyles();
27 Application.SetCompatibleTextRenderingDefault(false); 30 Application.SetCompatibleTextRenderingDefault(false);
28 Application.Run(new MainForm(Mutex)); 31 Application.Run(new MainForm(Mutex));
29 } 32 }
30 finally 33 finally
31 { 34 {
32 Mutex.ReleaseMutex(); 35 Mutex.ReleaseMutex();
33 } 36 }
34 } 37 }
35   38  
36 #endregion 39 #endregion
37 } 40 }
38 } 41 }
39   42  
40
Generated by GNU Enscript 1.6.5.90.
43
Generated by GNU Enscript 1.6.5.90.
41   44  
42   45  
43   46