internal OrderInfo GenerateOrder(int id)
{
var shipcountry = this.shipCountry[this.random.Next(5)];
var shipcitycoll = this.shipCity[shipcountry];
var order = new OrderInfo()
{
OrderID = (id + 10000).ToString(),
EmployeeID = this.random.Next(1700, 1800).ToString(),
CustomerID = this.customerID[this.random.Next(15)],
IsClosed = (id % this.random.Next(1, 10) > 5) ? true : false,
FirstName = this.firstNames[this.random.Next(15)],
LastName = this.lastNames[this.random.Next(15)],
Gender = this.genders[this.random.Next(5)],
ShipCity = shipcitycoll[this.random.Next(shipcitycoll.Length - 1)],
ShipCountry = this.shipCountry[this.random.Next(5)],
Freight = Math.Round(this.random.Next(1000) + this.random.NextDouble(), 2),
ShippingDate = this.orderedDates[this.random.Next(15)],
ShippingDate1 = this.orderedDates[this.random.Next(15)],
...
ShippingDate44 = this.orderedDates[this.random.Next(15)]
};
return order;
}
private DateTime shippingDate1;
public DateTime ShippingDate1
{
get => this.shippingDate1;
set
{
this.shippingDate1 = value;
this.RaisePropertyChanged("ShippingDate1");
}
}
...
...
private DateTime shippingDate44;
public DateTime ShippingDate44
{
get => this.shippingDate44;
set
{
this.shippingDate44 = value;
this.RaisePropertyChanged("ShippingDate44");
}
}
FrozenColumnsCount="4"