/// <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)); }
/// <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); }