public VSTRig(ControlPanel _controlPanel) { controlPanel = _controlPanel; rack = controlPanel.auditwin.rack; panels = new List <VSTPanel>(); patches = new List <Patch>(); currentPatch = null; newPatch = null; hasChanged = false; }
public AudimatWindow() { settings = new Settings(); //read prog settings in from config file InitializeComponent(); //control panel goes just below menubar controlPanel = new ControlPanel(this); this.Controls.Add(controlPanel); controlPanel.Location = new Point(this.ClientRectangle.Left, AudimatMenu.Bottom); this.Controls.Add(controlPanel); //rack control fills up entire client area between control panel & status bar rack = new VSTRack(this); rack.Location = new Point(this.ClientRectangle.Left, controlPanel.Bottom); this.Controls.Add(rack); controlPanel.Width = rack.Width; //set initial sizes minHeight = this.AudimatMenu.Height + controlPanel.Height + this.AudimatStatus.Height; int rackHeight = settings.rackHeight; this.ClientSize = new System.Drawing.Size(rack.Size.Width, rackHeight + minHeight); this.MinimumSize = new System.Drawing.Size(this.Size.Width, this.Size.Height - rackHeight); this.MaximumSize = new System.Drawing.Size(this.Size.Width, Int32.MaxValue); this.Location = new Point(settings.rackPosX, settings.rackPosY); curRackHeight = rack.Height; controlPanel.newRig(); //initial empty rig //child windows keyboardWnd = new KeyboardWnd(controlPanel); keyboardWnd.Icon = this.Icon; keyboardWnd.FormClosing += new FormClosingEventHandler(keyboardWindow_FormClosing); keyboardWnd.Location = new Point(settings.keyWndPosX, settings.keyWndPosY); keyboardWnd.Hide(); mixerWnd = new MixerWnd(this); patchWin = new PatchWindow(this); mainShutdown = false; rackhidden = false; }