Mercurial > silverbladetech
view Chronosv2/source/Main.cs @ 30:8d574f2d4174
Cleaned up client
author | adminsh@apollo |
---|---|
date | Wed, 21 Mar 2012 22:26:48 +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(); } } } }