private static void Main(string[] args) { // ensure only a single instance of this app runs. SingleInstanceApplication app = new SingleInstanceApplication(); app.Run(args); }