Program.cs
// Copyright 2010 ESRI // // All rights reserved under the copyright laws of the United States // and applicable international laws, treaties, and conventions. // // You may freely redistribute and use this sample code, with or // without modification, provided you include the original copyright // notice and use restrictions. // // See the use restrictions. // using System; using System.Collections.Generic; using System.Windows.Forms; using ESRI.ArcGIS; namespace MoleLeaderStack { static class Program { /// <summary> /// The main entry point for the application. /// </summary> [STAThread] static void Main() { Application.EnableVisualStyles(); Application.SetCompatibleTextRenderingDefault(false); RuntimeManager.Bind(ProductCode.Engine); Application.Run(new MainForm()); // Clean up resources on exit. ESRI.ArcGIS.DefenseSolutions.IMoleCoreHelper mch = new ESRI.ArcGIS.DefenseSolutions.MoleCoreHelperClass(); mch.ReleaseForceElementRenderer(); // Release any COM objects that are still around. ESRI.ArcGIS.ADF.COMSupport.AOUninitialize.Shutdown(); } } }