Mercurial > silverbladetech
view Chronosv2/source/Main.cs @ 15:060f02cd4591
Initial commit, pre airport work
author | stevenh7776 stevenhollidge@hotmail.com |
---|---|
date | Mon, 12 Mar 2012 23:05:21 +0800 |
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(); } } } }