private void Set_UseEndDate() { if (UseDateLimitType == CouponUseType.Days) { if (!ReceivingDate.HasValue) { _useEndDate = null; } else { _useEndDate = ReceivingDate.GetValueOrDefault().AddDays(UseLimitDays.GetValueOrDefault()); } } else if (UseDateLimitType == CouponUseType.All) { _useEndDate = null; } }
public MainPage InputReceivingDate(string date) { ReceivingDate.Click(); ReceivingDate.SendKeys(date); return(this); }