public void Open(IntPtr hWnd) { _uiWrapper.SafeInstance.NoteOnNumbers = _plugin.GetInstance <MidiProcessor>().NoteOnNumbers; _uiWrapper.SafeInstance.NoteOffNumbers = _plugin.GetInstance <MidiProcessor>().NoteOffNumbers; _uiWrapper.Open(hWnd); }
/// <summary> /// Open an instance of the board editor /// </summary> /// <param name="hWnd"></param> public void Open(IntPtr hWnd) { lock (guiLock) { _uiWrapper = new WinFormsControlWrapper <BoardEditor>(); // databind to board settings try { Action a = () => { _uiWrapper.SafeInstance.IsForPlugin = true; _uiWrapper.SafeInstance.BoardSettings = _plugin.BoardSettings; }; if (_uiWrapper.SafeInstance.InvokeRequired) { a(); } else { _uiWrapper.SafeInstance.BeginInvoke(a); } } catch (Exception) { // could give exceptions when handle is not created } _uiWrapper.Open(hWnd); IsOpen = true; } }
public bool EditorOpen(IntPtr hWnd) { if (_commands != null) { _commands.EditorOpen(_uiWrapper.SafeInstance.PluginWnd); } _uiWrapper.SafeInstance.LoadedPluginPath = _pluginPath; _uiWrapper.Open(hWnd); return(true); }
public void Open(IntPtr hWnd) { // passed transpose object to view.... this is older code before parameters. _view.SafeInstance.Transpose = _plugin.Transpose; _view.Open(hWnd); _plugin.Transpose.SemitonesManager.PropertyChanged += _view.SafeInstance.SemitonesParameterChanged; if (_plugin.Host != null) { _plugin.Transpose.ConnectHost(); } }
public void Open(IntPtr hWnd) { // make a list of parameters to pass to the dlg. var paramList = _parameters.ParameterInfos .Where(p => p.ParameterManager != null) .Select(p => p.ParameterManager !) .ToList(); _view.SafeInstance.InitializeParameters(paramList); _view.Open(hWnd); }
public void Open(IntPtr hWnd) { // make a list of parameters to pass to the dlg. var paramList = new List <VstParameterManager>() { _plugin.MidiProcessor.Cascade.CascadeMgr, }; _view.SafeInstance.InitializeParameters(paramList); _view.Open(hWnd); }
public void Open(IntPtr hWnd) { // make a list of parameters to pass to the dlg. var paramList = new List <VstParameterManager>() { _plugin.AudioProcessor.Delay.DelayTimeMgr, _plugin.AudioProcessor.Delay.FeedbackMgr, _plugin.AudioProcessor.Delay.DryLevelMgr, _plugin.AudioProcessor.Delay.WetLevelMgr }; _view.SafeInstance.InitializeParameters(paramList); _view.Open(hWnd); }
public void Open(IntPtr hWnd) { // make a list of parameters to pass to the dlg. var paramList = new List <VstParameterManager>() { _plugin.MidiProcessor.Gain.GainMgr, _plugin.MidiProcessor.Transpose.TransposeMgr, }; _view.SafeInstance.InitializeParameters(paramList); _view.SafeInstance.SetListKitsIndexChanged(new EventHandler(lstKits_SelectedIndexChanged)); LoadGrid(CurrentKit.Grid); LoadKitsCombobox(); SetCurrentKitName(CurrentKit.Name); SetGridItemsDetails(SelectedGridItem); _view.SafeInstance.SetItemInKitListSelected(CurrentKit.Name); _view.Open(hWnd); }
public void Open(IntPtr hWnd) { _view.Open(hWnd); }
public void Open(IntPtr hWnd) { _repeater.Open(hWnd); _repeater.SafeInstance.AdjustSize(); }
public void Open(IntPtr hWnd) { _uiWrapper.SafeInstance.setPlugin(_plugin); // LB - Note this is also in the constructor above for the first instance. _uiWrapper.Open(hWnd); }
public void Open(IntPtr hWnd) { _uiWrapper.SafeInstance.NoteMap = _plugin.NoteMap; _uiWrapper.SafeInstance.NoteOnEvents = _plugin.GetInstance <MidiProcessor>().NoteOnEvents; _uiWrapper.Open(hWnd); }
public void Open(IntPtr hWnd) { _uiWrapper.SafeInstance.NoteMap = _noteMap; _uiWrapper.SafeInstance.NoteOnEvents = _midiProcessor.NoteOnEvents; _uiWrapper.Open(hWnd); }