Beispiel #1
0
        void SetTimeValue(NumberBox sender)
        {
            TimerAction timer = (TimerAction)sender.Tag;

            float time = sender.GetFloat();

            if (!sender.Success)
            {
                sender.Text = "1";
                time        = 1;
            }

            timer.DefaultTime = (float)Math.Round(time, 1);
            sender.Text       = "" + timer.DefaultTime;
        }