//Called from UCCNC when the plugin is loaded and started.
 public void Startup_event()
 {
     if (myform.IsDisposed)
     {
         myform = new PluginForm(this);
     }
     myform.Show();
 }
Exemplo n.º 2
0
        // Called when the Pluginshowup(string Pluginfilename); function is executed in the UCCNC.

        public void Showup_event()
        {
            if (pluginForm.IsDisposed)
            {
                pluginForm = new PluginForm(this);
            }

            pluginForm.Show();
            pluginForm.BringToFront();
        }
Exemplo n.º 3
0
        // Called when the plugin is initialised.
        // The parameter is the Plugin interface object which contains all functions prototypes for calls and callbacks.
        public void Init_event(Plugininterface.Entry UC)
        {
            this.UC    = UC;
            pluginForm = new PluginForm(this);

            String assemblyFileName = currentAssemblyFileName();
            String value            = UC.Readkey("Plugins_enabled", assemblyFileName, "undefined").ToLower();

            if (value == "true")
            {
                cppDll.Load();
                cppDll.setCallBacks(uc_callbacks);
            }
        }
        //Called when the Pluginshowup(string Pluginfilename); function is executed in the UCCNC.
        public void Showup_event()
        {
            Console.WriteLine("UCCNCplugin Showup_event()");
            if (myform.IsDisposed)
            {
                myform = new PluginForm(this);
            }

            loopstop = false; // I had to do this to get the form display to start showing again



            myform.Show();
            myform.BringToFront();
        }
 //Called when the plugin is initialised.
 //The parameter is the Plugin interface object which contains all functions prototypes for calls and callbacks.
 public void Init_event(Plugininterface.Entry UC)
 {
     this.UC = UC;
     myform  = new PluginForm(this);
 }