private void addModelViewerToRightPanel(ModelViewer mv) { mv.Width = 200; mv.Height = 200; mv.BorderStyle = BorderStyle.FixedSingle; mv.BackColor = Color.White; this.partBasket.Controls.Add(mv); }
private void addSelectedParts_Click(object sender, EventArgs e) { ModelViewer mv = this.glViewer.addSelectedPartsToBasket(); if (mv != null) { mv.Width = 200; mv.Height = 200; mv.BorderStyle = BorderStyle.FixedSingle; mv.BackColor = Color.White; this.partBasket.Controls.Add(mv); } }