Exemplo n.º 1
0
        public void Open(IntPtr hWnd)
        {
            _uiWrapper.SafeInstance.NoteOnNumbers  = _plugin.GetInstance <MidiProcessor>().NoteOnNumbers;
            _uiWrapper.SafeInstance.NoteOffNumbers = _plugin.GetInstance <MidiProcessor>().NoteOffNumbers;

            _uiWrapper.Open(hWnd);
        }
Exemplo n.º 2
0
        /// <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;
            }
        }
Exemplo n.º 3
0
        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();
     }
 }
Exemplo n.º 5
0
        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);
        }
Exemplo n.º 6
0
        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);
        }
Exemplo n.º 7
0
        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);
        }
Exemplo n.º 8
0
        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);
        }
Exemplo n.º 9
0
 public void Open(IntPtr hWnd)
 {
     _view.Open(hWnd);
 }
Exemplo n.º 10
0
 public void Open(IntPtr hWnd)
 {
     _repeater.Open(hWnd);
     _repeater.SafeInstance.AdjustSize();
 }
Exemplo n.º 11
0
 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);
 }
Exemplo n.º 12
0
 public void Open(IntPtr hWnd)
 {
     _uiWrapper.SafeInstance.NoteMap      = _plugin.NoteMap;
     _uiWrapper.SafeInstance.NoteOnEvents = _plugin.GetInstance <MidiProcessor>().NoteOnEvents;
     _uiWrapper.Open(hWnd);
 }
Exemplo n.º 13
0
 public void Open(IntPtr hWnd)
 {
     _uiWrapper.SafeInstance.NoteMap      = _noteMap;
     _uiWrapper.SafeInstance.NoteOnEvents = _midiProcessor.NoteOnEvents;
     _uiWrapper.Open(hWnd);
 }