The problem of DailyTrigger

Topics: Errors
May 10, 2016 at 8:34 AM
Edited May 10, 2016 at 9:07 AM
In the TriggerEditorDialog, when I chose Daily trigger, it is able to input 200 in the "Recur every;" control.
But if I click OK, all number larger than 100 will just become 100.

If I try to input 0 or a negative number, it will throw exception as well.

Maybe handle with it in UI will be more friendly.
May 10, 2016 at 6:50 PM
I had set the min value to 0 instead of 1 and the max to 100 instead of short.MaxValue. That will fix the exception. As far as the UpDownNumericControl telling me it is changing the value to the min or max, there isn't a simple way to check that in code and alert the user. I was able to eliminate the ability to use a negative sign.
Marked as answer by dahall on 5/10/2016 at 11:50 AM
May 16, 2016 at 8:09 AM
Edited May 16, 2016 at 9:36 AM
In 2.5.20, I find the max value of DaysInterval is 32676, and the library will throw an exception when try to save.

I just read the article in MSDN, and I found this .
It says that the max value in system is 365, so the value large than 365 may cause an exception.
May 16, 2016 at 5:09 PM
Corrected for 2.5.21. Thanks for the catch.