Hush – Blame information for rev 1
?pathlinks?
Rev | Author | Line No. | Line |
---|---|---|---|
1 | office | 1 | using System; |
2 | using System.Windows.Forms; |
||
3 | using Hush.Properties; |
||
4 | |||
5 | namespace Hush |
||
6 | { |
||
7 | internal static class Program |
||
8 | { |
||
9 | /// <summary> |
||
10 | /// The main entry point for the application. |
||
11 | /// </summary> |
||
12 | [STAThread] |
||
13 | private static void Main() |
||
14 | { |
||
15 | // Bind to process termination. |
||
16 | AppDomain.CurrentDomain.ProcessExit += OnProcessExit; |
||
17 | |||
18 | Application.EnableVisualStyles(); |
||
19 | Application.SetCompatibleTextRenderingDefault(false); |
||
20 | Application.Run(new Hush()); |
||
21 | } |
||
22 | |||
23 | private static void OnProcessExit(object sender, EventArgs e) |
||
24 | { |
||
25 | // Unbind from process termination. |
||
26 | AppDomain.CurrentDomain.ProcessExit -= OnProcessExit; |
||
27 | |||
28 | // Save application settings when program terminates. |
||
29 | Settings.Default.Save(); |
||
30 | } |
||
31 | } |
||
32 | } |