private void buttonApply_Click(object sender, EventArgs e) { OpenGLUC myControl = ParentGLControl as OpenGLUC; if (myControl != null) { myControl.OGLControl.GLrender.ResetPointLineSizes(); myControl.Refresh(); } }
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; if (myControl != null) { myControl.Refresh(); } } }
private void buttonOK_Click(object sender, EventArgs e) { GLSettings.PointSize = Convert.ToSingle(this.textBoxPointSize.Text); GLSettings.PointSizeAxis = Convert.ToSingle(this.textBoxPointSizeAxis.Text); //different usages OpenGLUC myControl = ParentGLControl as OpenGLUC; if (myControl != null) { myControl.OGLControl.GLrender.ResetPointLineSizes(); myControl.Refresh(); } OGLControl myOGLControl = ParentGLControl as OGLControl; if (myOGLControl != null) { myOGLControl.GLrender.ResetPointLineSizes(); myOGLControl.Update(); } this.Close(); }