private IEnumerable <BindablePlaybill> LoadPlaybills() { DateTime minStopTime = DateTime.Now.AddMinutes(5); if (_bindablePlaybill == null) { return(Playbill.LoadPlaybills(minStopTime).Select(i => new BindablePlaybill(i)).ToArray()); } else { return(Playbill.LoadPlaybills(minStopTime, _bindablePlaybill.StartTime).Select(i => new BindablePlaybill(i)).ToArray()); } }
private IEnumerable <BindablePlaybill> LoadPlaybills() { DateTime minStopTime = DateTime.Now.AddMinutes(5); return(Playbill.LoadPlaybills(minStopTime).Select(i => new BindablePlaybill(i)).ToArray()); }