public preferences(IHost h, PluginPreferences _pref, CncControl cc)
 {
     InitializeComponent();
     this.FormBorderStyle = FormBorderStyle.FixedDialog;
     host = h;
     pref = _pref;
     _cc  = cc;
     pref.loadDefaults();
 }
예제 #2
0
        /// <summary>
        /// Called after everything is initalized to finish parts, that rely on other initializations.
        /// Here you must create and register new Controls and Windows.
        /// </summary>
        public void PostInitialize()
        {
            // Add the CoolControl to the right tab
            cool = new CncControl();
            cool.Connect(host);
            host.RegisterHostComponent(cool);


            // Add some text in the about dialog
            host.AboutDialog.RegisterThirdParty("CncPlugin", "\r\n\r\nCNC control plugin by Anders Hellstrand");
        }