public static void SetCheckedDate(this IDateTimeBox textBox, DateTime value) { textBox.Checked = !ALCore.IsZeroDate(value); if (textBox.Checked) { textBox.Value = value; } }
public static DateTime GetCheckedDate(this IDateTimeBox textBox) { return(textBox.Checked ? textBox.Value : new DateTime(0)); }