Inertia – Diff between revs 1 and 2

Subversion Repositories:
Rev:
Show entire fileIgnore whitespace
Rev 1 Rev 2
Line 1... Line 1...
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;
Line 6... Line 3...
6   3  
7 namespace Inertia 4 namespace Inertia
8 { 5 {
9 static class Program 6 internal class Program : IDisposable
-   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
10 { 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();
-   33 Application.SetCompatibleTextRenderingDefault(false);
18 Application.SetCompatibleTextRenderingDefault(false); 34 _form = new Form1();
19 Application.Run(new Form1()); 35 Application.Run();
-   36 }
-   37  
20 } 38 #endregion
21 } 39 }
22 } 40 }