Inertia – Diff between revs 1 and 2

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