예제 #1
0
        private void buttonApply_Click(object sender, EventArgs e)
        {
            OpenGLUC myControl = ParentGLControl as OpenGLUC;

            if (myControl != null)
            {
                myControl.OGLControl.GLrender.ResetPointLineSizes();
                myControl.Refresh();
            }
        }
예제 #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;
                if (myControl != null)
                {
                    myControl.Refresh();
                }
            }
        }
예제 #3
0
        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();
        }