Mercurial > silverbladetech
view Chronosv2/source/Main.cs @ 25:81f9b72a44ce
Tidy up
author | adminsh@apollo |
---|---|
date | Tue, 20 Mar 2012 21:22:00 +0000 |
parents | 741981715d94 |
children |
line wrap: on
line source
using System; using NLog; namespace Chronos { /// <summary> /// Application entry point class /// </summary> public static class ChronosMain { /// <summary> /// Entry Point /// </summary> /// <param name="args">The args.</param> [STAThread] public static void Main(params string[] args) { if (SingleInstance.InitializeAsFirstInstance("Chronos")) { var application = new App(); application.InitializeComponent(); if (args != null && args.Length > 0) { application.Run(args); } else { application.Run(); } // Allow single instance code to perform cleanup operations SingleInstance.Cleanup(); } } } }