Esempio n. 1
0
        private void BtnChangeSpeed_Click(object sender, EventArgs e)
        {
            NumericKeyBoard nk = new NumericKeyBoard(this.Speed * 1000);

            nk.MaxValue = Convert.ToDouble(this.upDownSpeed.Maximum);
            if (nk.ShowDialog() == DialogResult.OK)
            {
                this.Speed = (float)nk.FormValue / 1000;
            }
        }
Esempio n. 2
0
        private void Button1_Click(object sender, EventArgs e)
        {
            NumericKeyBoard nk = new NumericKeyBoard(Convert.ToDouble(this.npAngle.Value));

            nk.MaxValue = Convert.ToDouble(this.npAngle.Maximum);
            if (nk.ShowDialog() == DialogResult.OK)
            {
                this.npAngle.Value = (decimal)nk.FormValue;
            }
        }