public VSTHostWindow(HostControllerProxy hcp_) { InitializeComponent(); hoi = new HostObserverImpl(this); hcp = hcp_; hcp.RegisterObserver(hoi); ofd.Filter = "VST Plugins (*.dll, *.vst3)|*.dll;*.vst3|VST2 Plugins (*.dll)|*.dll|VST3 Plugins (*.vst3)|*.vst3"; ofd.InitialDirectory = System.IO.Path.GetFullPath(HostProxy.PluginDirectory); Initialize(); SetButtons(); }
public VSTPluginWindow(HostControllerProxy hcp_, uint i) { InitializeComponent(); hcp = hcp_; index = i; SizeToContent = SizeToContent.WidthAndHeight; Title = hcp.GetPluginName(index); menuItemBypass.IsChecked = hcp.IsBypassed(index); menuItemActive.IsChecked = hcp.IsActive(index); hcp.CreateEditor(index, uc.Handle); FixSize(); GeneratePresetMenu(); }