示例#1
0
        private void HostCmdStub_PluginCalled(object sender, PluginCalledEventArgs e)
        {
            HostCommandStub hostCmdStub = (HostCommandStub)sender;

            if (hostCmdStub.PluginContext.PluginInfo != null)
            {
                Debug.WriteLine("Plugin " + hostCmdStub.PluginContext.PluginInfo.PluginID + " called:" + e.Message);
            }
            else
            {
                Debug.WriteLine("The loading Plugin called:" + e.Message);
            }
        }
        private void HostCmdStub_PluginCalled(object sender, PluginCalledEventArgs e)
        {
            HostCommandStub hostCmdStub = (HostCommandStub)sender;

            // can be null when called from inside the plugin main entry point.
            if (hostCmdStub.PluginContext.PluginInfo != null)
            {
                Debug.WriteLine("Plugin " + hostCmdStub.PluginContext.PluginInfo.PluginID + " called:" + e.Message);
            }
            else
            {
                Debug.WriteLine("The loading Plugin called:" + e.Message);
            }
        }
示例#3
0
        // not used
        void Event_PluginCalled(object sender, PluginCalledEventArgs e)
        {
            switch (e.Message)
            {
            case "SizeWindow()":
                Rectangle rect;
                /*if (plugin.EditorGetRect(out rect)) */
                SetFSize((Rectangle)e.Data);
                host.ProcessIdle();
                break;

            case "UpdateDisplay()":
                panel2.Invalidate();
                host.ProcessIdle();
                break;
            }
        }