static void Main(string[] args)
        {
            //ESRI License Initializer generated code.
            m_AOLicenseInitializer.InitializeApplication(new esriLicenseProductCode[] { esriLicenseProductCode.esriLicenseProductCodeEngine },
                                                         new esriLicenseExtensionCode[] { });
            //ESRI License Initializer generated code.
            //Do not make any call to ArcObjects after ShutDownApplication()
            m_AOLicenseInitializer.ShutdownApplication();

            //Call the main execution of the application
            RunTheApp();
        }
Пример #2
0
    public void Initialize()
    {
        // ESRILicenseProductCode = esriLicenseProductCode.esriLicenseProductCodeArcView;

        ESRILicenseInitializer = new GeoprocessingInDotNet.LicenseInitializer();
        ESRILicenseInitializer.InitializeApplication(ESRILicenseProductCode);

        if (ESRILicenseInitializer.InitializedProduct > 0)
        {
        }
        else
        {
            throw new Exception("ESRI License Not Initialized");
        }
    }