Run this code:
var trigger = new TimeTrigger();
trigger.EndBoundary = new DateTime(2016, 1, 1);
var dialog = new TriggerEditDialog(trigger, supportV1Only: false);
dialog.ShowDialog();
Then interactive with the dialog:
1. Uncheck Expire
2. Change to "At log on"
3. Uncheck Activate
4. Change to "On a schedule".
The following exception is thrown:
An unhandled exception of type 'System.ArgumentOutOfRangeException' occurred in System.Windows.Forms.dll
Additional information: Value of '0001-01-01 00:00:00' is not valid for 'Value'. 'Value' should be between 'MinDate' and 'MaxDate'.
var trigger = new TimeTrigger();
trigger.EndBoundary = new DateTime(2016, 1, 1);
var dialog = new TriggerEditDialog(trigger, supportV1Only: false);
dialog.ShowDialog();
Then interactive with the dialog:
1. Uncheck Expire
2. Change to "At log on"
3. Uncheck Activate
4. Change to "On a schedule".
The following exception is thrown:
An unhandled exception of type 'System.ArgumentOutOfRangeException' occurred in System.Windows.Forms.dll
Additional information: Value of '0001-01-01 00:00:00' is not valid for 'Value'. 'Value' should be between 'MinDate' and 'MaxDate'.