Widow – Diff between revs 1 and 6
?pathlinks?
Rev 1 | Rev 6 | |||
---|---|---|---|---|
1 | using System; |
1 | using System; |
|
2 | using System.Windows.Forms; |
2 | using System.Windows.Forms; |
|
3 | |
3 | |
|
4 | namespace Widow |
4 | namespace Widow |
|
5 | { |
5 | { |
|
6 | internal class Program : IDisposable |
6 | internal class Program : IDisposable |
|
7 | { |
7 | { |
|
8 | #region Static Fields and Constants |
8 | #region Static Fields and Constants |
|
9 | |
9 | |
|
10 | private static Form _form; |
10 | private static Form _form; |
|
11 | |
11 | |
|
12 | #endregion |
12 | #endregion |
|
13 | |
13 | |
|
14 | #region Constructors, Destructors and Finalizers |
14 | #region Constructors, Destructors and Finalizers |
|
15 | |
15 | |
|
16 | public void Dispose() |
16 | public void Dispose() |
|
17 | { |
17 | { |
|
18 | _form?.Dispose(); |
18 | _form?.Dispose(); |
|
19 | _form = null; |
19 | _form = null; |
|
20 | } |
20 | } |
|
21 | |
21 | |
|
22 | #endregion |
22 | #endregion |
|
23 | |
23 | |
|
24 | #region Private Methods |
24 | #region Private Methods |
|
25 | |
25 | |
|
26 | /// <summary> |
26 | /// <summary> |
|
27 | /// The main entry point for the application. |
27 | /// The main entry point for the application. |
|
28 | /// </summary> |
28 | /// </summary> |
|
29 | [STAThread] |
29 | [STAThread] |
|
30 | private static void Main() |
30 | private static void Main() |
|
31 | { |
31 | { |
|
32 | Application.EnableVisualStyles(); |
32 | Application.EnableVisualStyles(); |
|
33 | Application.SetCompatibleTextRenderingDefault(false); |
33 | Application.SetCompatibleTextRenderingDefault(false); |
|
34 | _form = new Form1(); |
34 | _form = new MainForm(); |
|
35 | Application.Run(); |
35 | Application.Run(); |
|
36 | } |
36 | } |
|
37 | |
37 | |
|
38 | #endregion |
38 | #endregion |
|
39 | } |
39 | } |
|
40 | } |
40 | } |
|
41 | |
41 | |
|
42 |
|
42 |
|
|
43 | |
43 | |
|
44 | |
44 | |
|
45 | |
45 | |