Beispiel #1
0
        private void stageDifRotZTB_TextChanged(object sender, EventArgs e)
        {
            float i = 0;

            if (float.TryParse(stageDifRotZTB.Text, out i))
            {
                stageDifRotZTB.BackColor = Color.White;
                selectedStageLight.setRotZ(i);
            }
            else
            {
                stageDifRotZTB.BackColor = Color.Red;
            }

            stageRotZTrackBar.Value = (int)(i + 180.0f);
        }