Inertia
/trunk/Inertia/Program.cs |
@@ -1,40 +1,22 @@ |
using System; |
using System.Collections.Generic; |
using System.Linq; |
using System.Threading.Tasks; |
using System.Windows.Forms; |
|
namespace Inertia |
{ |
internal class Program : IDisposable |
static class Program |
{ |
#region Static Fields and Constants |
|
private static Form _form; |
|
#endregion |
|
#region Constructors, Destructors and Finalizers |
|
public void Dispose() |
{ |
_form?.Dispose(); |
_form = null; |
} |
|
#endregion |
|
#region Private Methods |
|
/// <summary> |
/// The main entry point for the application. |
/// The main entry point for the application. |
/// </summary> |
[STAThread] |
private static void Main() |
static void Main() |
{ |
Application.EnableVisualStyles(); |
Application.SetCompatibleTextRenderingDefault(false); |
_form = new Form1(); |
Application.Run(); |
Application.Run(new Form1()); |
} |
|
#endregion |
} |
} |
} |