コード例 #1
0
        /// <summary>
        /// Implement this when you need a custom editor (UI).
        /// </summary>
        /// <param name="instance">A previous instance returned by this method.
        /// When non-null, return a thread-safe version (or wrapper) for the object.</param>
        /// <returns>Returns null when not supported by the plugin.</returns>
        protected override IVstPluginEditor CreateEditor(IVstPluginEditor instance)
        {
            if (instance == null)
            {
                PluginEditor pluginEditor = new PluginEditor();
                pluginEditor.Init(() => this.MssHub);
                return(pluginEditor);
            }

            return(base.CreateEditor(instance));
        }
コード例 #2
0
ファイル: Plugin.cs プロジェクト: hedoluna/midi-shape-shifter
        /// <summary>
        /// Implement this when you need a custom editor (UI).
        /// </summary>
        /// <param name="instance">A previous instance returned by this method. 
        /// When non-null, return a thread-safe version (or wrapper) for the object.</param>
        /// <returns>Returns null when not supported by the plugin.</returns>
        protected override IVstPluginEditor CreateEditor(IVstPluginEditor instance)
        {
            if (instance == null)
            {
                PluginEditor pluginEditor = new PluginEditor();
                pluginEditor.Init(() => this.MssHub);
                return pluginEditor;
            }

            return base.CreateEditor(instance);
        }