2 using System.Collections.Generic;
5 using System.Threading.Tasks;
7 namespace GUI.Datatypes
25 private static int hour = 5;
32 public Order(String dueDay,
int amount)
34 dueTime = Convert.ToDateTime(dueDay).AddHours(hour);
46 if (dueTime.CompareTo(start) > 0 && dueTime.CompareTo(end) <= 0)
64 double hours = dueTime.Subtract(start).TotalHours;
65 return (
int)(hours / d);
Order(String dueDay, int amount)
The constructor.
bool IsDueBetween(DateTime start, DateTime end)
Determins if order is due in a given time interval.
int Amount
How many items are requested.
DateTime dueTime
When is this order due.
int getDueTimeslot(DateTime start, double d)
Computes the timeslot when the order is due.
A wrapper class for orders.