Exemplo n.º 1
0
        private void buttonApply_Click(object sender, EventArgs e)
        {
            OpenGLUC myControl = ParentGLControl as OpenGLUC;

            myControl.OGLControl.GLrender.ResetPointLineSizes();
            myControl.Refresh();
        }
Exemplo n.º 2
0
        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();
            }
        }
Exemplo n.º 3
0
        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();
        }