/*--------------------------------------------------------------------------------------+
|   Program.cs
|   
|   Main entry class establishing a connection to the MicroStation host.
|
+--------------------------------------------------------------------------------------*/

using System.Resources;
using System.Collections.Generic;

using Bentley;
using Bentley.ECObjects;
using Bentley.ECObjects.Instance;
using Bentley.ECObjects.Schema;

using Bentley.GeometryNET; //Basic, Common, Functions, Solvers, VU
using Bentley.DgnPlatformNET; //Constraint2d, DgnEC, ECPresentationNET, Elements, Provenance, XDataTree
using Bentley.DgnPlatformNET.Elements;
using Bentley.DgnPlatformNET.XDataTree;
using Bentley.MstnPlatformNET;             //Commands, Diagnostics, Exceptions, GUI, Hosting, Internal
using Bentley.MstnPlatformNET.XDataTree;
using System.Windows.Forms;   //InteropServices, Ribbon, WinForms, WPF, XDataTree

namespace DisableECName
{
    /// <summary>
    /// Main entry point class for this addin application.
    /// When loading an AddIn MicroStation looks for a class
    /// derived from AddIn.
    /// </summary>
    [AddIn(MdlTaskID = "DisableECName")]
    internal sealed class Program : AddIn
    {
        public static Program Addin = null;

        private Program(System.IntPtr mdlDesc) : base(mdlDesc)
        {
            Addin = this;
        }

        protected override int Run(string[] commandLine)
        {
            KeyinCommands.CheckECSchema();
            return 0;
        }
    }
}