/// Called after everything is initalized to finish parts, that rely on other initializations.
        /// Here you must create and register new Controls and Windows.
        public void PostInitialize()
        {
            // load plugin translation file
            string langPath = Path.Combine(Path.GetDirectoryName(System.Reflection.Assembly.GetExecutingAssembly().Location), "translations");

            if (Directory.Exists(langPath))
            {
                Trans.trans.AddFolder(langPath);
            }

            // load plugin settings from windows registry
            Settings.load_Settings(host);


            // Add the settings tab in the repetier host configuration
            SettingsControl SettingsCon = new SettingsControl();

            SettingsCon.Connect(host);
            host.RegisterHostComponent(SettingsCon);


            // Add some info in the about dialog
            host.AboutDialog.RegisterThirdParty(
                "FilamentInfo", "\r\n\r\n FilamentInfo Plugin for Repetier-Host."
                + "\r\n Version: " + Settings.pluginVersion
                + "\r\n Homepage: " + Settings.homepage);


            // if external position for the calculator is selected add a link in the menu and the event click
            if (Settings.showCalculator == 2)
            {
                ToolStripMenuItem menuItem = new ToolStripMenuItem(Trans.T("FI_LINKMENUCALC"));
                menuItem.Click += menuItem_ShowCalcClick;

                host.GetMenuFolder(MenuFolder.TOOLS_MENU).DropDownItems.Add(menuItem);
            }


            // if external position is selected add a link in the menu and the event click
            if (Settings.filamentListPos == 2)
            {
                ToolStripMenuItem menuItem = new ToolStripMenuItem(Trans.T("FI_LINKMENU"));
                menuItem.Click += menuItem_Click;

                host.GetMenuFolder(MenuFolder.TOOLS_MENU).DropDownItems.Add(menuItem);
                return;
            }



            // Add the CoolControl to the right tab or into main area
            wrapper cool = new wrapper();

            cool.Connect(host);
            host.RegisterHostComponent(cool);
        }
        /// <summary>
        /// COSTRUCTOR open filaments list and calculator
        /// </summary>
        public External_form(IHost _host)
        {
            InitializeComponent();

            this.Text = Trans.T("FI_FORMTITLE");

            // Add filament control
            wrapp = new wrapper();
            wrapp.Connect(_host);
            wrapp.Associated3DView = null;
            wrapp.Anchor           = ((System.Windows.Forms.AnchorStyles)((((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Bottom)
                                                                            | System.Windows.Forms.AnchorStyles.Left)
                                                                           | System.Windows.Forms.AnchorStyles.Right)));
            wrapp.Location = new System.Drawing.Point(3, 3);
            wrapp.Name     = "ConverteC";
            wrapp.Size     = new System.Drawing.Size(this.Width - 22, this.Height - 35);
            wrapp.TabIndex = 0;
            this.Controls.Add(wrapp);
        }