/// <summary> /// return true if all the shop in the list is same /// </summary> /// <param name="shops"></param> /// <returns>bool</returns> public static bool isAllSameShop(List <BlShop> shops) { BlShop firstShop = shops[0]; foreach (var shop in shops) { if (!firstShop.Equals(shop)) { return(false); } } return(true); }
/// <summary> /// return the arrive time from delivery position to the shop /// </summary> /// <param name="startPoint"></param> /// <param name="customersAddress"></param> /// <param name="shop"></param> /// <returns></returns> public double ArriveTimeShop(BlCustomersAddress customersAddress, BlShop shop) { return(this.Time(customersAddress.Location) + customersAddress.Location.Time(shop.Location)); }
public override string ToString() { return($"{FirstName} {LastName} Deer {BlShop.GetShopById(ShopId).ShopName} Manager"); }
public override bool Equals(object obj) { BlShop shop = (BlShop)obj; return(shop != null && shop.GetHashCode() == this.GetHashCode()); }