Exemple #1
0
        private void PluginListVw_SelectedIndexChanged(object sender, EventArgs e)
        {
            try
            {
                if (PluginListVw.SelectedItems.Count > 0)
                {
                    PluginContext = (VstPluginContext)PluginListVw.SelectedItems[0].Tag;
                }
                else
                {
                    PluginContext = null;
                }
                string Category = PluginContext.PluginCommandStub.GetCategory().ToString();

                if (Category != "Effect")
                {
                    isEffect = false;
                }
                else
                {
                    isEffect = true;
                }
                if (isEffect == false)
                {
                    plugins.AddPlugins(PluginContext);
                }
                else
                {
                }
            }
            catch (Exception) {}
        }