private void buttonApply_Click(object sender, EventArgs e) { OpenGLUC myControl = ParentGLControl as OpenGLUC; myControl.OGLControl.GLrender.ResetPointLineSizes(); myControl.Refresh(); }
private void buttonColorModel_Click(object sender, EventArgs e) { ColorDialog dialogColor = new ColorDialog(); if (dialogColor.ShowDialog() == DialogResult.OK) { OpenGLUC myControl = ParentGLControl as OpenGLUC; myControl.ChangeModelColor(dialogColor.Color); } }
private void buttonBackColor_Click(object sender, EventArgs e) { ColorDialog dialogColor = new ColorDialog(); if (dialogColor.ShowDialog() == DialogResult.OK) { GLSettings.BackColor = dialogColor.Color; OpenGLUC myControl = ParentGLControl as OpenGLUC; myControl.Refresh(); } }
private void buttonColorModels_Click(object sender, EventArgs e) { ColorDialog dialogColor = new ColorDialog(); // Update the text box color if the user clicks OK if (dialogColor.ShowDialog() == DialogResult.OK) { GLSettings.ColorModels = dialogColor.Color; OpenGLUC myControl = ParentGLControl as OpenGLUC; myControl.ChangeAllModelsColor(dialogColor.Color); } }
private void buttonOK_Click(object sender, EventArgs e) { GLSettings.PointSize = Convert.ToSingle(this.textBoxPointSize.Text); GLSettings.PointSizeAxis = Convert.ToSingle(this.textBoxPointSizeAxis.Text); OpenGLUC myControl = ParentGLControl as OpenGLUC; if (myControl != null) { myControl.OGLControl.GLrender.ResetPointLineSizes(); myControl.Refresh(); } this.Close(); }
private void AddOpenGLControl() { this.OpenGLControl = new OpenGLUC(); this.SuspendLayout(); // // openGLControl1 // this.OpenGLControl.Dock = System.Windows.Forms.DockStyle.Fill; this.OpenGLControl.Location = new System.Drawing.Point(0, 0); this.OpenGLControl.Name = "openGLControl1"; this.OpenGLControl.Size = new System.Drawing.Size(854, 453); this.OpenGLControl.TabIndex = 0; this.ResumeLayout(false); }